mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
36 lines
861 B
JavaScript
36 lines
861 B
JavaScript
import {Component, View as NgView, bootstrap} from 'angular2/angular2'
|
|
import {View, Tabs, Tab} from 'ionic/ionic'
|
|
import {webview} from 'ionic/webview/webview'
|
|
import {cordova} from 'ionic/webview/cordova/cordova'
|
|
import {nodeWebkit} from 'ionic/webview/node-webkit/node-webkit'
|
|
import * as util from 'ionic/util'
|
|
|
|
|
|
@Component({ selector: '[ion-app]' })
|
|
@NgView({
|
|
templateUrl: 'main.html',
|
|
directives: [View, Tabs, Tab]
|
|
})
|
|
class IonicApp {
|
|
constructor() {
|
|
console.log('IonicApp Start')
|
|
|
|
console.log(webview.getName(), webview.is('cordova'))
|
|
|
|
webview.ready().then(() => {
|
|
console.log('webviewready')
|
|
})
|
|
|
|
webview.fullScreen(true).then((isShown) => {
|
|
console.log('fullScreen', isShown)
|
|
})
|
|
|
|
webview.showStatusBar(true).then((isShown) => {
|
|
console.log('showStatusBar', isShown)
|
|
})
|
|
|
|
}
|
|
}
|
|
|
|
bootstrap(IonicApp)
|