Shams
February 3, 2015, 8:54am
1
I want to be able to start on slide index n,
here my code, n here equal to 3
<ion-slide-box selected=3 on-slide-changed="slideHasChanged($index)">
<ion-slide><img src="img/1.jpg" ></ion-slide>
<ion-slide><img src="img/2.jpg" ></ion-slide>
<ion-slide><img src="img/3.jpg" ></ion-slide>
<ion-slide><img src="img/4.jpg" ></ion-slide>
<ion-slide><img src="img/5.jpg" ></ion-slide>
</ion-slide-box>
but every time slidebox start from begining !
Shams
February 3, 2015, 9:13am
2
The code was work correct before I upgrade ionic to v1.0.0-beta.14 âmagnesium-mongooseâ
when I upgrade to beta 14 , it become gives this result
The attribute should be âactive-slideâ not âselectedâ.
According to ion slide box docs and check an example
2 Likes
Shams
February 3, 2015, 9:30am
4
thank you very much @joseadrian it is work now
I see this page https://github.com/driftyco/ionic/blob/v1.0.0-beta.14/CHANGELOG.md#breaking-changes
and I did not expect that there is an error here !
And Breaking Changes
The slideBoxâs API has undergone many changes.
attributes have changed (see
documentation)
active-slide has changed to selected. Change your code from
this:
<ion-slide-box active-slide="activeSlideIndex"></ion-slide-box>
To this:
<ion-slide-box selected="activeSlideIndex"></ion-slide-box>
You are right. I havenât found any issue on github about this and Iâm not sure If I should open one.
On the same tag (v1.0.0-beta.14) they have âselectedâ
And âactive-slideâ
1 Like