You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's the expected behavior for $index, in this case it is keeping the iterator offset for the current collection, which has been filtered and has max size of pageSize. If you want the iterator offset based on the unfiltered collection use collection.indexOf(item), like this this:
Hi there,
I found that $index will not accumulate past the actual page per number count, so u cannot tell them index from your object properly.
I made a plunker where it shows that every page has $index going from 0 to 9 instead of properly going up.
http://plnkr.co/edit/kFR4SUptZowapfJKBy6F?p=preview
The text was updated successfully, but these errors were encountered: