how to put placeholder in select tag in angular code example
Example 1: placeholder in angular 9 select
Set initial value of month = null in the component.ts and
add [(ngModel)]="month" in the select tag of component.html.
month = null;
<form #filter="ngForm" (ngSubmit)="filterta(filter)" style="display: flex;">
<select name="month" [(ngModel)]="month" #month required>
<option [ngValue]="null" [disabled]="true" >All</option>
<option value="1">January</option>
</select>
</form>
Example 2: placeholder in angular 9 select with working required
[value]="" selected hidden