This library was generated with Angular CLI version 9.1.13.
Angular pagination library.
Easy pissy 😜
Install => Add HTML > Whohooo pagination implemented 🥳
Install Ng3 pagination library to your project
npm install ng3-pagination --save
Import Ng3PaginationModule to your app.module.ts file
import { Ng3PaginationModule } from 'ng3-pagination';
imports: [
....
Ng3PaginationModule,
...
],
Use ng3-pagination component inside your componenent
<ng3-pagination
[currentPage]="1"
[totalCount]="1000"
[pageSize]="10"
(pageChanged)="onPageChanged($event)"
></ng3-pagination>
Options | Description | Default value |
---|---|---|
currentPage | Current active page number | 1 |
totalCount | Number of total items in the list | 0 |
pageSize | Number of total items in the list | 10 |
Method | Description | return value |
---|---|---|
pageChanged | Triggers when user click on the any page number or next button or previous button from pagination component | number (selected by user) |
This repository and the code inside it is licensed under the MIT License.