michaelbromley / michaelbromley/angularUtils

dirPagination: repeating on object has least items on first page rather than last

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

Description

**Description of issue**: When I use dir-paginate on an object, the pagination works but the first page has the least amount of items, rather than the last page. Version 0.11.1

![dir-paginate](https://user-images.githubusercontent.com/11409836/37929190-46519a28-310d-11e8-84f6-10fce116eec4.gif)

Any relevant code:

example.html
```




Last Name
First Name
YOG
Enroll


{{student.lastName}}
{{student.firstName}}
{{student.yog}}
Enroll


```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the example.html snippet and reproduce the behavior using dir-paginate on the students object with itemsPerPage:10. Inspect the dir-paginate pagination path to determine why the first page receives the fewest items. Done means the first page is full when enough items exist and only the final page has fewer items.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.