I am using ngb pagination
following is the code:
<ngb-pagination class='float-right' [maxSize]=10
(pageChange)="currentPage=$event;paginationNavigation('pagination');"
[collectionSize]="totalobjects" [(pageSize)]="pageSize"
[(page)]="currentPage" aria-label="Default pagination">
</ngb-pagination>
I am getting currentPage value from query params:
const params = this._route.snapshot.queryParams
this.currentPage=parseInt(params['currentPage']) || 1;
But this doesn't set the pagination html value when refreshing/loading the page,it shows as first page.