I don't really think I can elucidate much more than I already have in the title, it's a fairly self-descriptive question.
Say I have this structure:
<div ng-repeat="type in types">
<div ng-repeat="subtype in type.subtypes">
<div ng-repeat="item in subtype.items">
<span>How to access Controller scope here?</span>
</div>
</div>
</div>
Inside the span, how can I access the original scope on the controller?
In Knockout, you can do $parents[i]
where i
is however many scopes you want to step back up in. I haven't seen a reference to that being possible with Angular.
Do I really have to call $parent.$parent.$parent
?