Web seems to have many examples like:
Angular 13 Pagination example (server side) with ngx-pagination - BezKoder[
^]
Above article demonstrates example using
ngx-pagination
provides
NgxPaginationModule
for displaying pagination with numbers and responsive style.
There are 2 main things that you would need to do:
1.
PaginatePipe: placed at the end of an ngFor expression
<your-element *ngFor="let item of collection | paginate: { id: 'foo',
itemsPerPage: pageSize,
currentPage: page,
totalItems: total }">...</your-element>
Use the id if you need to support more than one instance of pagination at a time.
2.
PaginationControlsComponent: a default component for displaying pagination controls
<pagination-controls></pagination-controls>