shan shan - 1 year ago 294
AngularJS Question

How to display total number of records using smart table in AngularJS

I am using smart-table for displaying the records.
Using custom pagination to display the records 20 per page.

I want to display pagination like : 1 - 20 of 25 Records
How can I accomplish this ?
- I tried using (num of pages * total pages), but this will round the result.

Answer Source

You can use totalItemCount which is present inside tableState.pagination. Just populate that value once you get data from server and use that value in the pagination template.