michaelbromley / michaelbromley/angularUtils
Paginate nested elements
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 842
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am trying to paginate over items which have been purchased through a certain time period. My goal is to display the items annotated by the date they have been purchased.
Here is my code snippet,
``` HTML
```
JSON data source:
``` JavaScript
{
"28-06-2016":[{itemId: "11", itemName: "item_11"},{itemId: "22", itemName: "item_22"}],
"22-06-2016":[{itemId: "101", itemName: "item_101"},{itemId: "202", itemName: "item_202"},{itemId: "303", itemName: "item_303"}],
"20-06-2016":[{itemId: "1001", itemName: "item_1001"}]
}
```
However, I end up seeing just the list of dates and the following error on console, "the itemsPerPage id argument does not match a registered pagination-id".
Any help with this?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the provided nested dir-paginate example and the console error about the itemsPerPage id not matching a registered pagination-id. Determine how pagination is expected to work across the date groups; done means the nested item lists render with pagination and no console error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100