#Angular Pagination
Angular Pagination is a module for the AngularJS framework.
Simple example:
angular
.module('app', ['angularPagination'])
.controller('AppController', function($scope, Pagination) {
var pagination = $scope.pagination = Pagination.create({
itemsPerPage: 10,
itemsCount: 100,
maxNumbers: 5
});
pagination.onChange = function(page) {
console.info('page=', page);
};
});
<div ng-controller="AppController">
<ul class="pagination">
<li ng-repeat="page in pagination.pages track by $index" ng-class="{active: pagination.isCurrent(page)}" ng-click="pagination.setCurrent(page)">
<a href ng-bind="page"></a>
</li>
</ul>
</div>
See demo of full functionality