Angular Paginator
Pagination for Angular Applications.
Getting Started
Installation
Install via Package managers such as npm or yarn
npm install angular-paginator --save
yarn add angular-paginator
Usage
Import angular-paginator
module
import { AngularPaginatorModule } from 'angular-paginator';
@NgModule({
imports: [ AngularPaginatorModule ]
})
Import bootstrap-4 into your application
Then in HTML
<div *ngFor="let item of array | angularPaginator: {currentPage: currentPage }; let i = index">
{{(currentPage - 1) * itemsPerPage + i +1}}. {{item}}
</div>
<app-angular-paginator (pageChange)="currentPage = $event"></app-angular-paginator>
Documentation
Check wiki for more information