Currently, I am attempting to implement a pagination feature on an array of users using Angularjs 1.3.
ng-repeat="user in users | filter: searchText | orderBy: 'lastName' | limitTo:pageSize:startPosition track by user.lanId"
I specifically want to utilize the "begin" parameter, represented by the startPosition variable above, to indicate the start of each page within my user list. However, when this approach failed, I decided to simplify the task by focusing on limiting an array of numbers.
$scope.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
ng-repeat="n in numbers | limitTo:2:2"
Unfortunately, this alternative method also did not yield the desired outcome; rather than obtaining numbers 3 and 4, I only received 1 and 2.
Subsequently, I made the switch to Angularjs 1.4-beta.6, which successfully resolved both scenarios as anticipated.
My primary inquiry is whether there exists a workaround to make these functionalities perform correctly under Angular 1.3? What underlying issue within Angular 1.3 could be contributing to this problem?
Even after experimenting with versions 1.3.15 and 1.3.2, I have been unable to find a solution.
I appreciate any insight or advice that can be offered. Thank you.