angular2-bootstrap-pagination
angular2-bootstrap-pagination is angular2 directive.
The sources for this package are in (https://github.com/rajan-g/angular2-bootstrap-pagination.git) repo. Please file issues and pull requests against that repo.
Demo Output
Install from npm
npm install angular2-bootstrap-pagination
component file use like below
/* * @author RAJAN G *///module file ;//include pagination directive@ ; @ public currentPage:number = 1; public totalItems:number = 200; // total numbar of page not items public maxSize:number = 10; // max page size { } public :void thiscurrentPage = pageNo; ; public :void //this method will trigger every page click console; ;
For Test demo
- Download this module
- Run following command
npm install npm start