ng-User ng-User - 1 year ago 36
AngularJS Question

Getting number of $index of a table row in angularjs

How can I get the number of index from the following example in js (angularjs)

<tr ng-hide="group.$hideRows" ng-repeat="customer in>
<td>({{$index + 1}}) </td> // << get this number ???

The index in my case is 10. But how can I get this value as variable to work with in other functions?

I tried it with
etc. But I didn't get the value 10.

Answer Source

If I correct understand question - you get count of items in array with:
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download