Skip to content

Swiper Instance on Angular #4416

Answered by vltansky
MarioC3 asked this question in Q&A
Apr 8, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

yeah ofcourse!

	<swiper #sliderRef>
  @ViewChild("sliderRef", { static: false }) swiperRef?: SwiperComponent;
....
    this.sliderRef.swiperRef.slideNext();

see here:
https://stackblitz.com/edit/swiper-angular-example?file=src/app/app.component.ts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarioC3
Comment options

Answer selected by MarioC3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants