Skip to content

Instantly share code, notes, and snippets.

@geykel
Created March 7, 2017 01:44
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/35eaff2dbed2db869ea8e36ed4f132bc to your computer and use it in GitHub Desktop.
Save geykel/35eaff2dbed2db869ea8e36ed4f132bc 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 { TabsPage } from '../pages/tabs/tabs';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage = TabsPage;
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