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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -