Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginator data change causes additional fetch #17

Closed
Wtower opened this issue Dec 21, 2016 · 0 comments
Closed

Paginator data change causes additional fetch #17

Wtower opened this issue Dec 21, 2016 · 0 comments
Assignees

Comments

@Wtower
Copy link
Owner

Wtower commented Dec 21, 2016

https://github.com/Wtower/ng-gentelella/blob/v0.2.2/gentelella/ga-paginate/ga-paginate.component.js#L68

        self.rePaginate(self.previousCount);

Currently rePaginate accepts one argument. If true, it calls the callback to fetch data. This is used in two places:

  • When the user changes page

  • On doCheck, which, because of the initial previousCount check, it occurs when the controller bindings change; mostly the count. Therefore no parameter (false) is necessary.

@Wtower Wtower self-assigned this Dec 21, 2016
@Wtower Wtower closed this as completed in b2f887d Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant