mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
22 lines
400 B
JavaScript
22 lines
400 B
JavaScript
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
|
|
import {IonicView} from 'ionic/ionic';
|
|
|
|
|
|
@Component({ selector: 'ion-app' })
|
|
@IonicView({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class IonicApp {
|
|
constructor() {
|
|
console.log('IonicApp Start')
|
|
}
|
|
doRefresh() {
|
|
console.log('DOREFRESH')
|
|
}
|
|
}
|
|
|
|
export function main(ionicBootstrap) {
|
|
ionicBootstrap(IonicApp);
|
|
}
|