angularUtils icon indicating copy to clipboard operation
angularUtils copied to clipboard

dir-pagination-controls not working

Open isahgaga opened this issue 8 years ago • 2 comments

"name": "angular-utils-pagination", "version": "0.11.1",

Description of issue: the controls dont change the items on display, no action screen shot 2016-07-03 at 10 39 22 screen shot 2016-07-03 at 10 39 13

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:


isahgaga avatar Jul 03 '16 10:07 isahgaga

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;
            });
        };

brunoneve avatar Jul 05 '16 17:07 brunoneve

@isahgaga you need to show me your code. I can't tell what is wrong from a screen shot alone.

michaelbromley avatar Jul 07 '16 07:07 michaelbromley