I am using ng-repeat in my application.
In this, I am trying to access the $ index of the parent loop
.div(ng-repeat= item in items) p(ng-repeat= detail in item.details) a(href='#')
how can I reference the $ index of the parent loop (i.e. the $ index of the element) inside the ng-repeat nested?
(the above code is in jade)
angularjs angularjs-ng-repeat pug
Sangram singh
source share