I have an application that uses ng-repeat
to list information. So:
HTML
<div ng-controller="listaCtrl">
<div ng-repeat="item in lista" ng-controller="itemCtrl">
<pre>{{item}}</pre>
</div>
</div>
I'm using this example for work on each item in the list, and I need to know the index that this ng-repeat
contains within my itemCtrl
.
Is there any method to get the $ index of ng-repeat
inside my controller?