From 6e8a8934d2c4e8dc8299ba7a7fa5c4116bc085cf Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Tue, 30 May 2017 21:15:57 +0200 Subject: [PATCH] refactor(app.component.ts) unified templates --- src/app/app.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9adbbfc..b44090b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -17,8 +17,6 @@ export class MyApp { pages: Array<{title: string, component: any}>; constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) { - this.initializeApp(); - // used for an example of ngFor and navigation this.pages = [ { title: 'Home', component: HomePage }, @@ -27,7 +25,7 @@ export class MyApp { } - 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.