Replies: 1 comment
-
When creating the project, I set the blank template. Thus, I display a page with a swiper inside the ion-router-outlet. At the same time, the initialization function in swiper-element-bundle.js is called not once, but several times. If I display the swiper directly in app.component.html, bypassing the ion-router-outlet , the problem goes away and the initialization is called once. How can I get around this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Could you please help me?
I am trying to use swiper in ionic framework. I followed this instruction:
https://ionicframework.com/docs/angular/slides
The problem is that the swiper is displayed on the page, but the previous / next buttons do not work. At the same time, it is perfectly scrolled by dragging. But when I added a simple button and moved the register() method to click on this button, then when I press it, the swiper buttons start working as they should.
register() in ngOnInit and in ngAfterContentInit don't make the buttons work either.
What could be the problem?
Beta Was this translation helpful? Give feedback.
All reactions