Files
Brandy Carney c98867493a refactor(segment): fixed border width with more than 3 buttons
Added another toolbar with 3 segments for testing and in order to fix
the width on iOS, references #356
2015-10-27 17:47:55 -04:00

26 lines
534 B
TypeScript

import {FORM_DIRECTIVES, FormBuilder, Validators, Control, ControlGroup} from 'angular2/angular2';
import {App} from 'ionic/ionic';
@App({
templateUrl: 'main.html',
providers: [FormBuilder],
directives: [FORM_DIRECTIVES]
})
class MyApp {
constructor(fb: FormBuilder) {
this.myForm = fb.group({
mapStyle: ['hybrid', Validators.required]
});
this.modelStyle = 'B';
this.appType = 'free';
}
doSubmit(event) {
console.log('Submitting form', this.myForm.value);
event.preventDefault();
}
}