diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4fc5537..8ae6ca5 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -18,8 +18,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: 'Page One', component: Page1 }, @@ -28,7 +26,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.