i need to create modal and reopen multiple times. The modal is creating fine and when i close the modal its passing proper passed parameter also.but when i try to recreate the same modal its not generating and i couldn’t see any error logs also.
If i close modal without parameter its working fine, but i need to pass parameter on close
I tried event subscribe of ionic 2 also it also didnt work i have added code below
in controller creating modal
let modal = Modal.create(MyModal, {para: this.para});
modal.onDismiss(data => {
this.para = data;
});
this.navController.present(modal);
in controller closing modal
this.viewCtrl.dismiss(this.para-from-modal);