navCtrl.pop() doesn't call Modal.onDidDismiss()


Hey, I open a Modal by myModal.present(). I also have an listener

myModal.onDidDismiss(() => {

But when I close the Modal by this.navCtrl.pop() the onDidDismiss() is not called… Any ideas?


you need to import ViewController from “ionic-angular”. then you call this.view.dismiss() instead of using this.navCtrl.pop()


Thx @chanyap92 , this works fine.