I have a slide-box with three slides and I want the title in the nav-bar to change as I move through the slides. The ion-slide-box
is contained within a ion-view
which has view-title
attribute. I tried creating a controller which reads the currentIndex()
of the slide and returns an object with the title I want. But i can’t seem to be able to bind the returned object into the <ion-view view-title={{property.value}}>
. Also I can only get the controller to work on-slide-changed
so the initial slide does not return the object but subsequent slides do.
Any help with this?