I want to update totalRecords of primeng table when data get from API
this.customerService.getData().subscribe(data=>
this.dataApi = data.users;
this.dataTotalRecords = data.total;
});
<p-table [value]="dataApi" [totalRecords]='dataTotalRecords' [rows]="10"
currentPageReportTemplate="Showing {first} to {last} of {totalRecords} entries"></p-table>
In my case, it's showing "Showing 1 to 10 of 30 entries". dataApi.length = 30 and dataTotalRecords is 100. So, I want to show as "Showing 1 to 10 of 100 entries".Even though, I set it as explicitly [totalRecords]='dataTotalRecords' , couldn't make it.
Please help me to fix this problem.