app.component.ts 675 B

12345678910111213141516171819202122
  1. import { Component } from '@angular/core';
  2. import { Platform } from 'ionic-angular';
  3. import { StatusBar } from '@ionic-native/status-bar';
  4. import { SplashScreen } from '@ionic-native/splash-screen';
  5. import { HomePage } from '../pages/home/home';
  6. @Component({
  7. templateUrl: 'app.html'
  8. })
  9. export class MyApp {
  10. rootPage:any = HomePage;
  11. constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
  12. platform.ready().then(() => {
  13. // Okay, so the platform is ready and our plugins are available.
  14. // Here you can do any higher level native things you might need.
  15. statusBar.styleDefault();
  16. splashScreen.hide();
  17. });
  18. }
  19. }