angular-pagination

Angular Pagination is a module for the AngularJS framework

Angular Core Dependency: >=1.1.5

Added by: Sam Deering

GitHub

Repository

nervgh/angular-pagination

Stats

Stars: 5

Watchers: 5

Forks: 2

Author

Alex
Alex

Module Description

#Angular Pagination

About

Angular Pagination is a module for the AngularJS framework.

Usage

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

Demos

  1. Example of full functionality
  2. Example of directive 1
  3. Example of directive 2

Module stats last updated: 2015-06-04 11:08:51

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!