mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
34 lines
730 B
JavaScript
34 lines
730 B
JavaScript
import {Component, View, bootstrap} from 'angular2/angular2'
|
|
import {Tabs, Tab} from 'ionic/ionic'
|
|
import {Engine} from 'ionic/engine/engine'
|
|
import * as util from 'ionic/util'
|
|
|
|
|
|
@Component({ selector: '[ion-app]' })
|
|
@View({
|
|
templateUrl: 'main.html',
|
|
directives: [Tabs, Tab]
|
|
})
|
|
class IonicApp {
|
|
constructor() {
|
|
console.log('IonicApp Start');
|
|
|
|
console.log(Engine.getName(), Engine.is('cordova'));
|
|
|
|
Engine.ready().then(() => {
|
|
console.log('Engine ready')
|
|
});
|
|
|
|
Engine.fullScreen(true).then((isShown) => {
|
|
console.log('Engine fullScreen', isShown)
|
|
});
|
|
|
|
Engine.showStatusBar(true).then((isShown) => {
|
|
console.log('Engine showStatusBar', isShown)
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
bootstrap(IonicApp);
|