diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a28e8d24..35b78aba 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -9,14 +9,17 @@ import { TabsPage } from '../pages/tabs/tabs'; templateUrl: 'app.html' }) export class MyApp { - rootPage:any = TabsPage; + rootPage: any = TabsPage; - constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { - platform.ready().then(() => { + constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) { + } + + 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. - statusBar.styleDefault(); - splashScreen.hide(); + this.statusBar.styleDefault(); + this.splashScreen.hide(); }); } }