Segment Button

This commit is contained in:
Max Lynch
2015-05-08 16:40:59 -05:00
parent 682be86c7f
commit 51ee9a415d
3 changed files with 41 additions and 19 deletions

View File

@@ -29,4 +29,5 @@
<button type="submit" button primary>Submit</button>
</form>
Map mode: <b>{{form.controls.mapStyle.value}}</b>
</ion-content>

View File

@@ -12,7 +12,7 @@ class IonicApp {
var fb = new FormBuilder();
this.form = fb.group({
mapStyle: ['', Validators.required]
mapStyle: ['hybrid', Validators.required]
});
}