@lawlesscreation wrote:
Hi, I'm trying to work out how I would close the first modal when another is opened, if you imagine a 2 step process using modals:
@Page({ templateUrl: 'build/pages/modal1/modal1.html' }) export class Modal1 { ... openSecondModal() { // We open the second modal let myModal = Modal.create(Modal2); this.nav.present(myModal); // We then close this modal this.viewCtrl.dismiss(); } }
Modal2 opens fine but in closing the first modal, the animations become broken for the app. I wonder if it believes all modals are closed?
Any thoughts on how I would do this? It seems like I would be better opening modal2 using a callback when modal1 closes but I'm not sure thats possible? I tried using .onDismiss but I still need to dismiss Modal1 without opening Modal2 and it also still gets the same visual bug.
Thanks for any help!
Posts: 1
Participants: 1