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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -