angularUtils
angularUtils copied to clipboard
dir-pagination-controls not working
"name": "angular-utils-pagination", "version": "0.11.1",
Description of issue: the controls dont change the items on display, no action
Steps to reproduce:
Expected result:
Actual result:
Demo: (for dirPagination, fork and modify this Plunk: http://plnkr.co/edit/b37IdFFJUokaeSummETX?p=preview)
Any relevant code:
You are passing the parameter of the page Number for your API?
following example:
html pagination
<dir-pagination-controls on-page-change="pageChanged(newPageNumber)" max-size="5" direction-links="true" boundary-links="true" > </dir-pagination-controls>
In controller $scope.pageChanged = function(newPage){ getResultsPage(newPage); };
function getResultsPage(pageNumber){
City.query({page: pageNumber}, function (data) {
$scope.cities = data.data;
$scope.totalCities = data.meta.pagination.total;
});
};
@isahgaga you need to show me your code. I can't tell what is wrong from a screen shot alone.