@hanzo2001 wrote:
I don't know the difference between these two components or their intent. I know that App has an entry in the API Docs but IonicApp has none. My IDE (VSCode) tells me that IonicApp has some hidden members (underscored names, sometimes annotated). I've seen code examples using an instance of this class but I still don't understand why there is an injectable IonicApp and App or what should I expect to use them for.
Could anyone clarify intended use? Is there any documentation for IonicApp?
I'll leave a summarized code snippet that I am expected to use below. It is part of the back-button handler registration code
let activePortal = ( this.ionicApp._loadingPortal.getActive() || this.ionicApp._modalPortal.getActive() || this.ionicApp._toastPortal.getActive() || this.ionicApp._overlayPortal.getActive() ); if (activePortal) { activePortal.dismiss(); activePortal.onDidDismiss(() => {}); return; }
global packages:
@ionic/cli-utils : 1.4.0 Cordova CLI : 6.5.0 Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.7 @ionic/cli-plugin-cordova : 1.4.0 @ionic/cli-plugin-ionic-angular : 1.3.1 Cordova Platforms : android 6.1.2 Ionic Framework : ionic-angular 3.2.1
Posts: 1
Participants: 1