mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(all): componentOnReady is part of the types
This commit is contained in:
@ -31,7 +31,7 @@ export class ModalController implements FrameworkDelegate {
|
||||
|
||||
dismiss(data?: any, role?: string, id?: number) {
|
||||
const modalController = document.querySelector('ion-modal-controller');
|
||||
return (modalController as any).componentOnReady().then(() => {
|
||||
return modalController.componentOnReady().then(() => {
|
||||
return modalController.dismiss(data, role, id);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user