I am receiving (socket.io) events to display several modals.
I just want to display 1 modal per id that I receive.
They came like id1, id1, id3, id3, id3, …
I want to have id1, id3 in the stack of modals
So when the user closes id3 will see id1 and when close id1 want se id1 again .
I was thinking in the home.ts (the root page) call
let alertModal = this.modalCtrl.create('MyModalPage', { id: myId });
alertModal.present();
only if active modal (id) != this id
How can I know which modal is active and with what param(id)?