Ich habe diese ion-option
innen ein ion-list
:Ionic2. Ion-Option aktiviert ist visuell nicht
<ion-select [(ngModel)]="year">
<ion-option checked="true">
{{year}}
</ion-option>
<ion-option *ngFor="#year of years">
{{year}}
</ion-option>
</ion-select>
Und in der Seite/Komponente I gesetzt:
this.year = '2016';
this.day = 30;
this.month = 'Jan';
Optisch ist es nicht überprüft, technisch gesehen, es ist. :
Dies sind die Optionen:
Wie es scheint, keine Zahl String sein muss ... Wie kann ich dieses Problem lösen?