Trying to change my ways

This commit is contained in:
Max Lynch
2015-06-25 08:16:30 -05:00
parent 60ad161a44
commit 0c68e6e900
3 changed files with 57 additions and 31 deletions

View File

@ -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) {