From 12a217b2746259c0187d8d959f1a6884e919665f Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 22 Apr 2017 20:24:45 +0200 Subject: [PATCH 1/3] typo --- src/app/app.component.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index cd95e8b..4f86abf 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -16,22 +16,17 @@ 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(private platform: Platform, private menu: MenuController, private statusBar: StatusBar, private splashScreen: SplashScreen) { // set our app's pages this.pages = [ { title: 'Hello Ionic', component: HelloIonicPage }, { title: 'My First List', component: ListPage } ]; + + this.initializeApp(); } initializeApp() { From 187be8cce2f4877401eec8b481638ff15031cf69 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Tue, 30 May 2017 21:13:29 +0200 Subject: [PATCH 2/3] Update app.component.ts --- 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 4f86abf..076de53 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -25,11 +25,9 @@ export class MyApp { { title: 'Hello Ionic', component: HelloIonicPage }, { title: 'My First List', component: ListPage } ]; - - 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. From 42f8637899095af693d5c9d2a9f29c8c288c8127 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Tue, 30 May 2017 21:30:41 +0200 Subject: [PATCH 3/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 076de53..ba46dae 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -19,7 +19,7 @@ export class MyApp { rootPage: any = HelloIonicPage; pages: Array<{ title: string, component: any }>; - constructor(private platform: Platform, private menu: MenuController, private statusBar: StatusBar, private splashScreen: SplashScreen) { + 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 },