JKnorr91 / ion-slide-box-tabs

An Add-On directive for the ion-slide-box, that adds tabs to the slide box, known from the Android Material Design specification
MIT License
248 stars 110 forks source link

how to init a slide on enter #34

Open darkreiser opened 8 years ago

darkreiser commented 8 years ago

i am trying to initiate a different slide than the default (index[0]) i have tried to use $scope.slides.active on the "on/afterEnter" but no luck...

the only progress i made is using "$ionicSlideBoxDelegate.slide(1);" in my "afterEnter", it moves to slide but not the underline indication...

plz help!

leoruhland commented 7 years ago

Hey @darkreiser I made a fork of the project and its working with initial active tab.

Fork: https://github.com/leoruhland/ion-slides-tabs Example with initial tab: https://leoruhland.github.io/ion-slides-tabs/example/example4.html