【发布时间】:2020-04-16 13:41:27
【问题描述】:
我的页面.html
<ion-item>
<ion-label color="medium">Leave</ion-label>
<ion-select [(ngModel)]="leavetype" name="leavetype">
<ion-select-option *ngFor="let val of result" value=""> {{val. leavetype}} </ion-select-option>
</ion-select>
</ion-item>
示例:- 我在下拉列表中有如下值:
Medical
Casual
Other
当我在关闭下拉菜单后选择“休闲”时,它会显示“医疗”而不是“休闲”,并且不会将值保存在数据库中。
【问题讨论】:
标签: php html css angular ionic4