How to trigger a function on the parent page when the modal is closed


#1

Hello,

I’m trying to trigger a function on the parent page when the modal is closed.

Thank you


#2
 presentProfileModal() {
   let profileModal = this.modalCtrl.create(Profile, { userId: 8675309 });
   profileModal.onDidDismiss(data => {
     console.log(data);
   });
   profileModal.present();
 }