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

Pagination useless event trigger #535

Open
Stopi opened this issue Nov 1, 2018 · 0 comments
Open

Pagination useless event trigger #535

Stopi opened this issue Nov 1, 2018 · 0 comments
Assignees

Comments

@Stopi
Copy link

Stopi commented Nov 1, 2018

Hi,

on [email protected], when using pagination with this code :
<md-pagination pages.bind="nbPages" active-page.bind="activePage" visible-page-links="14" md-on-page-changed.delegate="refresh($event)"></md-pagination>

I have nbPages == 1 and activePage == 1 at start.

Then, after loading my items, I change nbPages accordingly :
this.nbPages = new_number_of_pages;
It triggers the md-on-page-changed and call refresh($event) when activePage didn't changed.

I think it's a mistake.
At least it shouldn't do this if activePage == 1 or maybe while activePage <= nbPages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants