brantwills/Angular-Paging

problem getting pager settings

Closed this issue · 1 comments

i want to make this



and pass pager parameters to my function
pageSize and total always undefined

Hey Gehbeez,

By design only the page attribute is being exposed by the internalAction method in the directive which is why pageSize and total are undefined.

I do no see any harm exposing the pageSize and total attributes which would solve your issue.
In short, adding them to the pagingAction like so:

function internalAction(scope, page) {
   ...
        scope.pagingAction({
            page: page,
          +  pageSize: scope.pageSize,
          +  total: scope.total
        });
   ...
}

I would like to take some time and test these additions
I want to make sure we don't throw off the pageSize or total values say in a controller scope.

In theory there should be no conflict and I'll get this in there as soon as possible
Thank you so much for bringing this up!