Other information:
We need this functionality to show some data that's related to the current slide outside of the slider.
Our current approach is
to access slides by @ViewChild(Slides) slides
and
call slides.getActiveIndex() on both ionSlideReachStart and ionSlideDidChange
Ionic version: [ ] 1.x [x] 2.x [x] 3.x
I'm submitting a ... [x] bug report [x] feature request [] support request
Current behavior: The
ionSlideDidChange
event is not fired afterion-slides
is initialized and @InputinitialSlide
is not set or equals to0
.Expected behavior: The
ionSlideDidChange
event is always triggered afterion-slides
is set to it's initial position.OR
The new event like
ionSlideAfterInit
is introduced so it will be possible to trace the position of the slider after it loads like:Steps to reproduce: Check out the console logs of this PLUNKER
Related code: Most probably it's here: https://github.com/ionic-team/ionic/blob/master/src/components/slides/swiper/swiper.ts#L823
Other information: We need this functionality to show some data that's related to the current slide outside of the slider.
Our current approach is to access slides by
@ViewChild(Slides) slides
and callslides.getActiveIndex()
on bothionSlideReachStart
andionSlideDidChange
yet we are searching for a cleaner solution