I am writing an app with Ionic 1.3.5 and AngularJS 1.5.3.
I have nested components and a component factory that decides which child component to render.
One child type has an onClick call back that I am trying to propagate to the parent. I keep getting this error: Cannot use 'in' operator to search for '$ctrl' in Today
Here is my factory:
<clickable-list
ng-if="$ctrl.type === 'clickableList'"
on-click="$ctrl.onClick(value)"
answer="$ctrl.answer">
</clickable-list>
<plain-text-answer
ng-if="$ctrl.type === 'plainText'"
answer="$ctrl.answer">
</plain-text-answer>
I was able to fix my Plunker so it runs and reproduces the error: http://plnkr.co/edit/ESTMPRRpdRuks6AJdRxv