I have made a Stackblitz application where I am using a select box , with multiple selection . I want to default select the first item always , but I am unable to achieve it .
I am using selected ="i==0" but that doesnt help .
<select multiple class="custom-select" formControlName="cityName">
<option *ngFor="let city of City ;let i= index;" [ngValue]="city" [selected]="i==0" (change)="changeCity($event)">{{city}}</option>
</select>
Here's the stackblitz link -
Can anyone please help me on this ?