mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user