mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
32 lines
543 B
TypeScript
32 lines
543 B
TypeScript
import {Component} from 'angular2/angular2';
|
|
|
|
import {IonicView} from 'ionic/ionic';
|
|
|
|
|
|
@Component({ selector: 'ion-app' })
|
|
@IonicView({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class MyApp {
|
|
constructor() {
|
|
console.log('IonicApp Start')
|
|
}
|
|
doRefresh(refresher) {
|
|
console.log('DOREFRESH', refresher)
|
|
|
|
setTimeout(() => {
|
|
refresher.complete();
|
|
})
|
|
}
|
|
doStarting() {
|
|
console.log('DOSTARTING');
|
|
}
|
|
doPulling(amt) {
|
|
console.log('DOPULLING', amt);
|
|
}
|
|
}
|
|
|
|
export function main(ionicBootstrap) {
|
|
ionicBootstrap(MyApp);
|
|
}
|