Currently, I am utilizing Ionic's inline modal feature that is activated by a boolean value. However, after the modal is closed, the boolean does not automatically reset to zero. The Ionic documentation suggests that developers should monitor the ionModalDidDismiss
or didDismiss
event and manually change the value of isOpen
to false. Unfortunately, the documentation lacks specific instructions on how this can be achieved since the Events module has been replaced with Observables in Ionic.
I have attempted to find resources detailing how Observables can replace Ionic's Events for event handling, but my search has been fruitless. In essence, my goal is to detect a dismissal event triggered by an ionic-modal in the DOM and then update the isOpen
boolean accordingly. How can I utilize Observables to listen for these events, and are there any alternative approaches available?