1
使用Ionic2
和Angular2
,我想给用户一个选项,当他们从选择框中选择选项'其他'时进入专业。选择的ionic2当从选择框中选择其他选项时,显示输入字段
例子:
下面是代码:
\t <ion-item>
\t \t <ion-label>Select Profession</ion-label>
\t \t <ion-select [(ngModel)]="userType">
\t \t \t <ion-option *ngFor="let ut of userTypeList" [value]="ut.value" [innerHTML]="ut.label"></ion-option>
\t \t </ion-select>
\t </ion-item>
谢谢!有效。 –
很高兴有帮助:) – sebaferreras