Opening a modal from a popover

Hi!.

When opening a modal from a popover I do the following (pseudo-code)

this.viewCtrl.dismiss().then(()=>openModal());

The problem being that there is quite a long delay while the popup dismisses, then the modal opens.

How would I go about making this more responsive?

Any other way about it I seem to go leaves the popup open, or the modal is closed instantly and the popup remains open.

The docs here don’t even list the dismiss method?

http://ionicframework.com/docs/v2/api/components/nav/ViewController/

Running beta11.

Also tried to no avail

this.viewCtrl.dismiss({navOptions: {animate: false, transitionDelay: 0}}).then(()=>openModal());

hi ryan, i had some success with

//...
modal.present();
modal.onWillDismiss(() => {this.viewCtrl.dismiss();});

maybe this is what you are looking for

1 Like