mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
24 lines
337 B
TypeScript
24 lines
337 B
TypeScript
import {Component} from 'angular2/angular2';
|
|
|
|
import {IonicView} from 'ionic/ionic';
|
|
|
|
|
|
@Component({
|
|
selector: 'ion-app'
|
|
})
|
|
@IonicView({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class IonicApp {
|
|
next() {
|
|
console.log('Next');
|
|
}
|
|
prev() {
|
|
console.log('Prev');
|
|
}
|
|
}
|
|
|
|
export function main(ionicBootstrap) {
|
|
ionicBootstrap(IonicApp);
|
|
}
|