I'm using:
My question is the following:
<uib-pagination ng-change="test(this, name)" total-items="totalItems" ng-model="currentPage" items-per-page="itemsPerPage"></uib-pagination>
and my js
$scope.test = function(page, name) {
alert(page + name)
};
The name comes in handy but on the page the object comes to me,
- How can I get the page I gave him?
- Let's suppose that in total I have 10 000 data and if I show 10 in 10 I get 100 page buttons, how can I only get 10 for example but without using the max-size since with that I could only see the 100 first records