Within my MainPage
, I invoke the create function in the ModalController
, which displays the ModalPage
. Upon clicking cancel, the dismiss function is called and we are returned to the MainPage
. The process functions as expected.
@Component({
selector: 'main-page',
templateUrl: 'main-page.html'
})
export class MainPage{
itemTapped($event, item) {
let detModal = this.modalCtrl.create(ModalPage, {item : item});
detModal.present();
}
}
@Component({
selector: 'modal-page',
templateUrl: 'modal-page.html'
})
export class ModalPage{
dismiss() {
this.viewCtrl.dismiss();
}
}
Currently, I am seeking a way to trigger a function in the MainPage
once the ModalPage
has been dismissed. Is there a method available for achieving this?