michaelbromley / michaelbromley/angularUtils
dirPaginate: Multiple Instances within directive ng-repeat
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 842
- PR merge metrics
- No merged PRs in 30d
Description
I need to have multiple instances of dir-pagination-controls which is in a isolated scope directive. And directives are created dynamically. I cant give a unique pagination-id in this case to make unique instance of dir-paginate. My code works but it changes the page count in all the dir-pagination-controls if one is changes. here is my code
repeating directives :
Directive code :+1:
```
```
I have some customization like this below :
Any help would be very much appreciated
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the provided ng-repeat example with dir-paginate and dir-pagination-controls, then inspect how their pagination-id expressions are handled. The work is done when each repeated directive instance maintains its own page count and changing one control no longer changes the others.
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
- 38/100