Hi,
Can someone please let me know how do I pre-select the initial value on
my <select> code?
Below is my code:
<div class="form-group">
<select [ngModel]="selectedXX" (ngModelChange)="onChange($event)" name="dd"
id="dd" class="form-control" required>
<option value="">Please select</option>
<option [value]="i" *ngFor="let i of info">{{i}}</option>
</select>
</div>
Thanks
--
You received this message because you are subscribed to the Google Groups
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.