AngularJS UI Bootstrap pagination control off by one page -
i trying angular ui boostrap pagination control work table populated web api controller. i have directive used on pagination control: app.filter('pagination', function () { return function (input, start) { start = +start; return input.slice(start); }; }); i have following in angular controller: $scope.currentpage = 0; // max items per page $scope.pagesize = 10; // number of pagination buttons display $scope.numberbuttons = 5; // total items in array $scope.totalitems = 0; // number of pages $scope.numberpages = 0 in view, have following (truncated brevity): ... <tr data-ng-repeat="assettype in assettypes | filter:searchfilter | pagination: currentpage * pagesize | limitto: pagesize | orderby:sorttype:sortreverse"> <td><a href="#/asset-type-details/{{assettype.assettypeid}}">{{ assettype.assettypeid }}</a></td>--> <td>{{ assettype.assettypename...