We are facing a challenge in our Ionic-Angular Frontend Application with the following issue:
There is a component we are working with:
...
export class StepIndicatorComponent {
@Input() slides: IonSlides;
...
}
Our goal is to attach an event listener to the slides for the "ionSlideDidChange" event. Whenever this event is triggered, we need a method to be executed.
We have tried using rxjs and Hostlistener, but these methods seem to work only for DOM objects.
We are aware that we can add the method call for the event in the HTML file, but in this particular scenario, we need to implement it in the .ts component file.
Any suggestions or insights would be greatly appreciated.
Thanks!
For more information on Ion Slides API, please refer to: https://ionicframework.com/docs/api/slides