From a6a36b2a1efeac707ef8befb8bea66da710bc04e Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 22 Apr 2017 18:28:09 +0200 Subject: [PATCH 1/3] Update app.component.ts In your side menu template, you are using a separate method to initialize the app. So in the this template it should be the same. --- src/app/app.component.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a28e8d24..854535ba 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -9,14 +9,18 @@ import { TabsPage } from '../pages/tabs/tabs'; templateUrl: 'app.html' }) export class MyApp { - rootPage:any = TabsPage; + rootPage: any = TabsPage; - constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { - platform.ready().then(() => { + constructor(private platform: Platform, private statusBar: StatusBar, private splashScreen: SplashScreen) { + this.initializeApp(); + } + + initializeApp() { + this.platform.ready().then(() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need. - statusBar.styleDefault(); - splashScreen.hide(); + this.statusBar.styleDefault(); + this.splashScreen.hide(); }); } } From bf386ea628f8db0cbeb5519121f7665c36ed4e7b Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 22 Apr 2017 18:43:24 +0200 Subject: [PATCH 2/3] Update app.component.ts --- src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 854535ba..3c3aa383 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -11,7 +11,7 @@ import { TabsPage } from '../pages/tabs/tabs'; export class MyApp { rootPage: any = TabsPage; - constructor(private platform: Platform, private statusBar: StatusBar, private splashScreen: SplashScreen) { + constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) { this.initializeApp(); } From fdaad1117a15c3fa01f51562cfaff9b59955ff53 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Tue, 30 May 2017 21:14:52 +0200 Subject: [PATCH 3/3] Update app.component.ts --- src/app/app.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3c3aa383..35b78aba 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -12,10 +12,9 @@ export class MyApp { rootPage: any = TabsPage; constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) { - this.initializeApp(); } - initializeApp() { + ionViewDidLoad() { this.platform.ready().then(() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need.