Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

Is it possible to jump to a specific slide using a button?

$
0
0

@dccil wrote:

I have a Slides Page where I import a page by doing the HTML code below and importing the pages in Slides Page module.ts.

<ion-content>

  <ion-slides pager>

    <ion-slide style='overflow:scroll'>
      <page-1></page-1>
    </ion-slide>

    <ion-slide style='overflow:scroll'>
      <page-2></page-2>
    </ion-slide>

    <ion-slide style='overflow:scroll' class="card">
      <page-3></page-3>
    </ion-slide>
</ion-content>

I would like to access Page 3 by clicking a button on the home page. First thing I did was to create a button with the function goto(). Then on HomePage.ts

goto() {
   this.navCtrl.push(SlidesPage);
}

this.navCtrl.push(SlidesPage) takes me to SlidesPage where I can swipe through the slides.

How can I go to SlidesPage ion-slide page-3 by clicking the GoTo button on the home page?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>