Skip to content

Commit f471a64

Browse files
authored
Merge pull request #42 from danielsogl/patch-4
refactor(app.component.ts) unified templates
2 parents 1273665 + e633a2d commit f471a64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/app.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export class MyApp {
1818
pages: Array<{ title: string, component: any }>;
1919

2020
constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) {
21-
this.initializeApp();
22-
2321
// used for an example of ngFor and navigation
2422
this.pages = [
2523
{ title: 'Page One', component: Page1 },
@@ -28,7 +26,7 @@ export class MyApp {
2826

2927
}
3028

31-
initializeApp() {
29+
ionViewDidLoad() {
3230
this.platform.ready().then(() => {
3331
// Okay, so the platform is ready and our plugins are available.
3432
// Here you can do any higher level native things you might need.

0 commit comments

Comments
 (0)