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

Initialisation page != 0 #12

Open
PapyElGringo opened this issue Jun 29, 2017 · 0 comments
Open

Initialisation page != 0 #12

PapyElGringo opened this issue Jun 29, 2017 · 0 comments

Comments

@PapyElGringo
Copy link

Hello Nice job with this component!

But I've got an issue to initialise the pageIndex ([page]) to something different from 0;

<kb-page-slider [(page)]="pageNumber"

If pageNumber at the initialisation is "2" the page load will still be the page "0";

My current fix is to init pageNumber at undefined and then set it to the value wanted inside a setTimeout...

Any better idea?

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