How can I specify an index where an ng-repeat directive is going to start instead of zero?
I have a set of results and I just need to specify the starting one, which
This worked for me:
<element ng-repeat="round in view.rounds track by $index">
<span>{{$index + 1}}</span>
</element>
This could do the trick...
<div ng-repeat="(i, item) in items">
<p>{{i+1}}</p>
</div>
The answers seems to be quite old,
since angular 1.4.0
the limitTo filter takes two parameters
limitTo: (limit) : (begin)
you can say ng-repeat="item in list | limitTo:50:0"
this seems to be a much effective solution rather using two different filters.
https://code.angularjs.org/1.4.0/docs/api/ng/filter/limitTo