Skip to content

Instantly share code, notes, and snippets.

@geykel
Created May 19, 2017 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geykel/26e531b4f9e7286816b94def7196df9f to your computer and use it in GitHub Desktop.
Save geykel/26e531b4f9e7286816b94def7196df9f to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { SignInPage } from '../pages/signin/signin';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage: any = SignInPage;
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();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment