<select [(ngModel)]="profile.type" name="type"(change)="selectPhoneType($event,mailCreate,'phone4_Value')">
<option value="">Select type</option>
<option *ngFor="let types of mobiletypes" [ngValue]="types.value">
{{types.value}}
</option>
<option value="addMore">Add More</option>
</select>
</div>
i have this dropdown when i change the dropdown value it should automatically select the
selectPhoneType(event,mailCreate,type)
{
this.activeType=type;
event.preventDefault();
let value = event.target.value;
if(value=='addMore')
{
this.addMailCreateLabel(mailCreate);
this.profile.type='';
}
}
first value but in my case it is not selecting first value after addMore is selected.