2015-11-28 16:17:04 -06:00
|
|
|
import {App, Platform} from 'ionic/ionic';
|
|
|
|
import {HomePage} from './home/home';
|
|
|
|
import './app.scss';
|
|
|
|
|
2015-11-30 22:15:21 -06:00
|
|
|
import {StatusBar} from 'ionic-native';
|
|
|
|
|
2015-11-28 16:17:04 -06:00
|
|
|
@App({
|
|
|
|
template: `
|
|
|
|
<ion-nav [root]="root"></ion-nav>
|
|
|
|
<ion-overlay></ion-overlay>
|
|
|
|
`,
|
|
|
|
})
|
|
|
|
export class MyApp {
|
|
|
|
constructor(platform: Platform) {
|
|
|
|
this.platform = platform;
|
|
|
|
this.initializeApp();
|
|
|
|
this.root = HomePage;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
initializeApp() {
|
|
|
|
this.platform.ready().then(() => {
|
|
|
|
console.log('Platform ready');
|
2015-11-30 22:15:21 -06:00
|
|
|
StatusBar.styleDefault();
|
2015-11-28 16:17:04 -06:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|