A directive to aid in paging large datasets while requiring the bare minimum of actual paging information
npm install angular-paging
Demo Available At: http://brantwills.github.io/Angular-Paging/
An Angular directive to aid paging large datasets requiring minimum paging information. This paging directive is unique in that we are only interested in the active page of items rather than holding the entire list of items in memory. This forces any filtering or sorting to be performed outside the directive.
paging.js or paging.min.js file and include the module as a dependency to your angular application. We do support npm and bower if you are familiar with those distribution systems. Please review the src/index.html and src/app.js files for a working version of the directive if you are new to angular modules. javascript
// Add the Angular-Paging module as a dependency to your application module:
var app = angular.module('yourApp', ['bw.paging'])
`
Code Samples
See Full Demo for complete samples and documentationThe following attributes explored in the basic example are required directive inputs:
1.
page What page am I currently viewing
2. pageSize How many items in the list to display on a page
3. total What is the total count of items in my listThe other code examples explore supporting attributes which may be mixed and matched as you see fit. Please see src/index.html for complete code samples and documentation for a working HTML sample.
Basic Example

`html
page="35"
page-size="10"
total="1000"
paging-action="foo('bar', page)">
Enable First and Last Text

`html
page="currentPage"
page-size="pageSize"
total="total"
show-prev-next="true"
show-first-last="true">
`
Adjust Text, Class, and Hover Over Title
`html
...
text-first="«"
text-last="»"
text-next="›"
text-prev="‹"
text-title-page="Page {page} hover title text"
text-title-first="First Page hover title text"
text-title-last="Last Page hover title text"
text-title-next="Next Page hover title text"
text-title-prev="Previous hover Page title text"
text-first-class="glyphicon glyphicon-backward"
text-last-class="glyphicon glyphicon-forward"
text-next-class="glyphicon glyphicon-chevron-right"
text-prev-class="glyphicon glyphicon-chevron-left">
`
Enable Anchor Link Href
The text
{page} will display the page number
`html
...
pg-href="#GotoPage-{page}">
`
Adjust Class Name Settings
`html
...
class="small"
ul-class="{{ulClass}}"
active-class="{{activeClass}}"
disabled-class="{{disabledClass}}">
`
Boolean Flag Settings
`html
...
disabled="{{isDisabled}}"
scroll-top="{{willScrollTop}}"
hide-if-empty="{{hideIfEmpty}}">
`
Other Helper Settings
``html