mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
24 lines
366 B
JavaScript
24 lines
366 B
JavaScript
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
|
|
|
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);
|
|
}
|