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.