-
Hello Guys, I was wondering how can I get the Swiper Instance on Angular, so I can have access to the methods. |
Beta Was this translation helpful? Give feedback.
Answered by
vltansky
Apr 8, 2021
Replies: 1 comment 1 reply
-
yeah ofcourse! <swiper #sliderRef> @ViewChild("sliderRef", { static: false }) swiperRef?: SwiperComponent;
....
this.sliderRef.swiperRef.slideNext(); see here: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MarioC3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah ofcourse!
see here:
https://stackblitz.com/edit/swiper-angular-example?file=src/app/app.component.ts