angular-typescript-mat-pagination

angular2+ typescript material pagination bar


Keywords
pagination, typescript, material, angular2
License
ISC
Install
npm install angular-typescript-mat-pagination@1.0.3

Documentation

Material pagination

<material-pagination [showPrevNext]="true" (onChange)="getOtherPageData(pageNumber)" [itemsPerPage]="10" [totalItems]="5000" [range]="5">

Click on a page number or the arrows will trigger the function getOtherPageData and pass the page number which was clicked on the pagination bar so appropriate API call can be made based on the same to get the data and show the same in the view.

alt tag