diff --git a/src/app/app.component.ts b/src/app/app.component.ts index cd95e8b..ba46dae 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -16,17 +16,10 @@ export class MyApp { @ViewChild(Nav) nav: Nav; // make HelloIonicPage the root (or first) page - rootPage = HelloIonicPage; - pages: Array<{title: string, component: any}>; - - constructor( - public platform: Platform, - public menu: MenuController, - public statusBar: StatusBar, - public splashScreen: SplashScreen - ) { - this.initializeApp(); + rootPage: any = HelloIonicPage; + pages: Array<{ title: string, component: any }>; + constructor(public platform: Platform, public menu: MenuController, public statusBar: StatusBar, public splashScreen: SplashScreen) { // set our app's pages this.pages = [ { title: 'Hello Ionic', component: HelloIonicPage }, @@ -34,7 +27,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.