mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -14,6 +14,7 @@ class MyApp {
|
||||
mapStyle: ['hybrid', Validators.required]
|
||||
});
|
||||
|
||||
this.relationship = 'enemies';
|
||||
this.modelStyle = 'B';
|
||||
this.appType = 'free';
|
||||
}
|
||||
|
@ -1,17 +1,16 @@
|
||||
<ion-toolbar>
|
||||
<ion-title>
|
||||
<ion-segment>
|
||||
<ion-segment-button class="e2eSegmentFriends">
|
||||
<ion-segment [(ng-model)]="relationship">
|
||||
<ion-segment-button value="friends" class="e2eSegmentFriends">
|
||||
Friends
|
||||
</ion-segment-button>
|
||||
<ion-segment-button>
|
||||
<ion-segment-button value="enemies">
|
||||
Enemies
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
</ion-title>
|
||||
</ion-toolbar>
|
||||
|
||||
|
||||
<ion-toolbar>
|
||||
<ion-nav-items secondary>
|
||||
<button>
|
||||
@ -31,6 +30,8 @@
|
||||
</ion-toolbar>
|
||||
|
||||
<ion-content padding>
|
||||
<p>Are we friends or enemies? <b>{{ relationship }}</b></p>
|
||||
|
||||
<h4>Map mode: NgControl</h4>
|
||||
|
||||
<form (submit)="doSubmit($event)" [ng-form-model]="myForm">
|
||||
|
Reference in New Issue
Block a user