Skip to content

Instantly share code, notes, and snippets.

@geykel
Created March 7, 2017 01:53
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/fd35860131f0d9c5c6e389462cdd444c to your computer and use it in GitHub Desktop.
Save geykel/fd35860131f0d9c5c6e389462cdd444c to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { LoginPage } from '../pages/login/login';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage = LoginPage;
constructor(platform: Platform) {
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