In an Ionic 2 app, I have some piece of code like this:
onPageLoaded() {
let modal = Modal.create(TosModal);
this.nav.present(modal);
}
this works fine, the TosModal is opened and it has an implementation to dismiss itself:
this.viewCtrl.dismiss();
the problem is that the user, hitting a button, can goes to a new page:
this.nav.push(OtherPage);
and if he comes back to the previous (with the hardware back button or through the back button from the navbar) the modal is presented (because the onPageLoaded is triggered) but the page behind got all blank. When the modal is dismissed, the previous page won’t appear.
Is this correct, am I missing something?
My stack:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
OS: Distributor ID: LinuxMint Description: Linux Mint 17.3 Rosa
Node Version: v5.7.0