0.0.1 • Published 5 years ago

angular-paginator-guru v0.0.1

Weekly downloads
6
License
-
Repository
-
Last release
5 years ago

AngularPaginatorGuru

A simple and highly customizable plug-n-play package for pagination in Angular (v2+)

Quick Start

$ npm install angular-paginator-guru

Sample Implementation

// app.module.ts
import {PaginatorModule} from 'angular-paginator-guru'; // <-- import the module

@NgModule({
    imports: [BrowserModule, PaginatorModule], // <-- include it in your app module
})
<app-paginator-guru 
    (PageChange)="onPageChange($event)" 
    totalItemsCount=90 
    itemsPerPage=10>
</app-paginator-guru>

onPageChange(currentPage) {
    // Fetch data based on currentPage and update collection
    // console.log(currentPage)
}

License

MIT