I am trying to populate options on condition from a list of options. The HTML component I am using is:
<div class="select">
<select name="credentialsName" ngModel required>
<option *ngFor='let credential of credentials' *ngIf="credential.type==='MACHINE'" [value]="credential.name">{{credential.name}}</option>
</select>
</div>
I am getting syntax error: Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *
.Is there a way to show the option dropdown on condition from a option list?