In the process of working with Angular 9, I am currently in the process of constructing a dropdown menu that contains various options. However, I have encountered an issue where there is a blank option displayed when the page initially loads. How can I eliminate this blank option?
Below is the current code snippet that I am using:
<form #f="ngForm">
<select aria-labelledby="dropdownMenuButton" [(ngModel)]="selectedValue" (change)="hideShowElements($event.target.value)">
<option [ngValue]="null">Show All</option>
<option *ngFor="let item of response.results | filterUnique;" [ngValue]="item.section">{{item.section}}</option>
</select>
</form>
I would appreciate any assistance with resolving this matter!