First of all, you don't need pagination on the p-table component so the paginator property would be false like this
<p-table
[value]="clientList"
[rows]="pageSize"
[paginator]="false"
[(selection)]="selectedClients"
[responsive]="true"
styleClass="p-datatable-lg p-datatable-responsive"
>
second of all, you should use paginator component like this at below of your table
<p-table
[value]="clientList"
[rows]="pageSize"
[paginator]="false"
[(selection)]="selectedClients"
[responsive]="true"
styleClass="p-datatable-lg p-datatable-responsive"
>
<!-- your content goes here !-->
</table>
<p-paginator
(onPageChange)="handlePagination($event)"
[rows]="pageSize"
[totalRecords]="totalRecords"
></p-paginator>
public handlePagination(paginationData): void {
this.currentPage = paginationData.page + 1;
this.filterProducts();
}
public filterProducts(): void {
this.isLoading = true;
this.subs.sink = this.productService
.filterProducts(
this.appId,
this.searchedProduct,
this.selectedLangISO2,
this.currentPage,
this.sortBy,
this.sortField,
this.pageSize,
...this.additionalFilters
)
.subscribe(
(result) => {
})