mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
34 lines
875 B
HTML
34 lines
875 B
HTML
<ion-content class="padding">
|
|
<form (^submit)="doSubmit($event)">
|
|
|
|
<div ng-control-group="form">
|
|
<ion-segment ng-control="mapStyle">
|
|
<ion-segment-button value="standard" button>
|
|
Standard
|
|
</ion-segment-button>
|
|
<ion-segment-button value="hybrid" button>
|
|
Hybrid
|
|
</ion-segment-button>
|
|
<ion-segment-button value="sat" button>
|
|
Satellite
|
|
</ion-segment-button>
|
|
</ion-segment>
|
|
</div>
|
|
<button type="submit" button primary>Submit</button>
|
|
</form>
|
|
|
|
Map mode: <b>{{form.controls.mapStyle.value}}</b>
|
|
|
|
<div [switch]="form.controls.mapStyle.value">
|
|
<div *switch-when="'standard'">
|
|
<h2>Standard</h2>
|
|
</div>
|
|
<div *switch-when="'hybrid'">
|
|
<h2>Hybrid</h2>
|
|
</div>
|
|
<div *switch-when="'sat'">
|
|
<h2>Satellite!!</h2>
|
|
</div>
|
|
</div>
|
|
</ion-content>
|