ionic3 - With Ionic 3 How to make the slides start at the end? -
if have 3 slides, when view loads, see slide number 3 first. start end, not slide 1.
i tried:
ionviewdidload() { this.slides.slideto(3) }
but throws error: cannot read property 'length' of undefined
there initialslide
input property [ref]https://ionicframework.com/docs/api/components/slides/slides/#input properties
in view can add
<ion-slides initialslide="2"> <ion-slide> <h1>slide 1</h1> </ion-slide> <ion-slide> <h1>slide 2</h1> </ion-slide> <ion-slide> <h1>slide 3</h1> </ion-slide> </ion-slides>
Comments
Post a Comment