I am using modal and want to call a function after dismiss the modal.
i have tried onDidDismiss()
method but it shows an error
async openModal() {
const modal = await this.modal.create({ component: UploadPage });
modal.onDidDismiss(() => {
this.getData();
});
return await modal.present();
}
getData() {
......
}
in this way i got an error "Expected 0 arguments, but got 1."