2
我尝试使用带有离子的Date Picker,并且我不知道如何清除输入中的值。Ionic 2:将日期时间值设置为空
我想在列表中代表“空”值添加值:是这样的:
有我的代码:
<ion-item>
<ion-label>Année</ion-label>
<ion-datetime [(ngModel)]="year" doneText="Valider" cancelText="Annuler" displayFormat="YYYY"></ion-datetime>
</ion-item>