I have a collection of slides on one page, each slide representing a different page. I am looking to create a functionality where clicking a button on one of the pages will advance the slide to the next one:
slides-page.ts
@ViewChild(Slides) slides: Slides;
goNext() {
this.slides.slideNext()
}
slides-page.html
<ion-slides (click)="goNext()" (ionSlideDidChange)="slideChanged()" [pager]="true">
<ion-slide>
<page-family-status></page-family-status>
</ion-slide>
<ion-slide>
<page-familymembers></page-familymembers>
</ion-slide>
</ion-slides>
As an illustration, if currently viewing slide 1 - "page-family-status," when the button on that page is clicked, the slide would transition to the second slide, "page-familymembers."