Paginator is a component that helps you to render pagination.
npm install @ciag/paginator --save
import { PaginatorModule } from '@ciag/paginator';
@NgModule({
imports: [
PaginatorModule,
]
})
export class AppModule{}
<paginator [initialPage]="<pageToStart | Number>" (selectedKey)="reloadArticles($event)" [totalPagination]='<totalPages | Number>'></paginator>
reloadArticles(event){
console.log(event) // It will return the page that got selected
}
Made with ❤ by @Tiecoo in Pompeia, SP, Brazil