michaelbromley / michaelbromley/angularUtils
dir-paginate: Count results on that page
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 842
- PR merge metrics
- No merged PRs in 30d
Description
When using dirPagination is there a way to count the results that are currently shown on the page and also get the complete number of results.
I know I can use `array.length` to get the complete number of results, but I can't do anything to get the total results on that page other than using the property value of the total items per page which doesn't always match the results on that page.
If I've not explained it enough I'm trying to do a _Displaying 1-20 of 150_ but then there is only 1-7 of 7. I can't do that.
Bare in mind I've seen the documentation of the dir-pagination-controls but it doesn't work with the layout of my page.
**Code:**
`1`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the dir-paginate expression and the dir-pagination-controls documentation mentioned in the issue; verify how filteredLeads and currentPage expose page state. Done means providing a supported way to display the actual count on the current page alongside the complete result count, including a final partial page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100