22 lines
630 B
TypeScript
22 lines
630 B
TypeScript
|
import { Component } from '@angular/core';
|
||
|
import { Platform } from 'ionic-angular';
|
||
|
import { StatusBar } from '@ionic-native/status-bar';
|
||
|
import { SplashScreen } from '@ionic-native/splash-screen';
|
||
|
|
||
|
@Component({
|
||
|
templateUrl: 'app.html'
|
||
|
})
|
||
|
export class MyApp {
|
||
|
rootPage:any = 'InitPage';
|
||
|
|
||
|
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
|
||
|
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();
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|