I have the following code:
<select id="oneICO" class="form-control" required>
<option *ngFor="let car of cars" type="text"></option>
</select>
my problem is that i can get just a name, so *ngFor fails. is there a way in HTML to make a condition like
if(options.length>1){<option *ngFor="let car of cars" type="text"></option>}
else {<option *ngIf="car" type="text"></option>}
Aucun commentaire:
Enregistrer un commentaire