mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
26 lines
536 B
JavaScript
26 lines
536 B
JavaScript
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
import {Slides, Slide, SlidePager, List, Item, Content} from 'ionic/ionic';
|
|
|
|
|
|
@Component({
|
|
selector: 'ion-view'
|
|
})
|
|
@View({
|
|
directives: [Slides, Slide, SlidePager, Content, List, Item],
|
|
templateUrl: 'main.html'
|
|
})
|
|
class IonicApp {
|
|
next() {
|
|
console.log('Next');
|
|
}
|
|
prev() {
|
|
console.log('Prev');
|
|
}
|
|
}
|
|
|
|
export function main(ionicBootstrap) {
|
|
ionicBootstrap(IonicApp);
|
|
}
|