mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Trying to change my ways
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {FormBuilder, Validators, ControlGroup} from 'angular2/forms';
|
||||
import {formDirectives, FormBuilder, Validators, ControlGroup} from 'angular2/forms';
|
||||
|
||||
import {IonicView} from 'ionic/ionic';
|
||||
|
||||
|
||||
@Component({ selector: 'ion-app' })
|
||||
@IonicView({
|
||||
templateUrl: 'main.html'
|
||||
templateUrl: 'main.html',
|
||||
directives: [formDirectives]
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
@ -15,6 +16,7 @@ class IonicApp {
|
||||
this.form = fb.group({
|
||||
mapStyle: ['hybrid', Validators.required]
|
||||
});
|
||||
console.log(this.form);
|
||||
}
|
||||
|
||||
doSubmit(event) {
|
||||
|
Reference in New Issue
Block a user