mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
31 lines
857 B
JavaScript
31 lines
857 B
JavaScript
import {bootstrap} from 'angular2/angular2'
|
|
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
import {FormBuilder, Control, ControlGroup, Validators, formDirectives} from 'angular2/forms';
|
|
|
|
import {Nav, Segment, SegmentButton, Slides, Slide, Content, Button, List, Item} from 'ionic/ionic';
|
|
|
|
@Component({ selector: 'ion-app' })
|
|
@View({
|
|
templateUrl: 'main.html',
|
|
directives: [formDirectives, Nav, Segment, SegmentButton, Slides, Slide, Content, Button, List, Item]
|
|
})
|
|
export class IonicApp {
|
|
constructor() {
|
|
|
|
this.filterForm = new ControlGroup({
|
|
filterControl: new Control("")
|
|
});
|
|
/*
|
|
var fb = new FormBuilder();
|
|
this.form = fb.group({
|
|
filter: ['new']
|
|
});
|
|
*/
|
|
}
|
|
}
|
|
|
|
export function main() {
|
|
bootstrap(IonicApp);
|
|
}
|