How to can i use *ngif for set a specific default selected option?
I need reload data from database for editing, when i retrieve data i need set the default value of option in base a stored value.
I have this:
<select class="form-control" id="deviceModel">
<option value="">Select a category</option>
<option *ngFor='let element of category'*ngIf="{{element}}==={{nameDevice}}" value="{{element}}">{{element}}</option>
</select>
Thanks in advance.