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