fix(segment): Got segment working with ng-model, removed unused code and combined segment component with directive.

Added usage for segment in a form. Removed SegmentControlValueAccessor.
Fixes #344
This commit is contained in:
Brandy Carney
2015-11-04 14:57:56 -05:00
parent fa6990cc5f
commit 4cc9a14001
3 changed files with 45 additions and 106 deletions

View File

@@ -31,17 +31,17 @@
<h4>Map mode: NgControl</h4>
<form (submit)="doSubmit($event)" [ng-form-model]="myForm">
<ion-segment ng-control="mapStyle" danger>
<ion-segment-button value="standard" class="e2eSegmentStandard">
Standard
</ion-segment-button>
<ion-segment-button value="hybrid">
Hybrid
</ion-segment-button>
<ion-segment-button value="sat">
Satellite
</ion-segment-button>
</ion-segment>
<ion-segment ng-control="mapStyle" danger>
<ion-segment-button value="standard" class="e2eSegmentStandard">
Standard
</ion-segment-button>
<ion-segment-button value="hybrid">
Hybrid
</ion-segment-button>
<ion-segment-button value="sat">
Satellite
</ion-segment-button>
</ion-segment>
</form>
<p>