michaelbromley / michaelbromley/angularUtils

dirPagination: range.lower is 1 when range.total == 0

Open
#433 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2k
Forks
842
PR merge metrics
No merged PRs in 30d

Description

range.lower is 1 even when the collection is empty, so when using a custom template it displays 'Showing 1-0 of 0'

https://plnkr.co/edit/FHqqsJRVPrp50CAobTld?p=preview

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the empty-collection case in the linked Plunker and locate the dirPagination range calculation. Confirm that an empty collection currently produces range.lower as 1; done means custom templates display a corrected empty-range message without changing non-empty pagination behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.