mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
rename src to ionic
This commit is contained in:
36
ionic/components/tabs/test/basic/main.js
Normal file
36
ionic/components/tabs/test/basic/main.js
Normal file
@ -0,0 +1,36 @@
|
||||
import {bootstrap} from 'angular2/core'
|
||||
import {Component, Template} from 'angular2/angular2'
|
||||
import {View, Tabs, Tab} from 'ionic2/ionic2'
|
||||
import {webview} from 'ionic2/webview/webview'
|
||||
import {cordova} from 'ionic2/webview/cordova/cordova'
|
||||
import {nodeWebkit} from 'ionic2/webview/node-webkit/node-webkit'
|
||||
import * as util from 'ionic2/util'
|
||||
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@Template({
|
||||
url: '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)
|
Reference in New Issue
Block a user