Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants