Hello,
I have a select/dropdown controller with a list of names populated at initial startup and this works.
What I like to do is to have the select controller have the logged in user as the default user selected/displayed.
for example, loggedInMember = 3 (3 representing the index number of the user who is logged in).
If possible, I also like to minimize the coding in the html to keep it clean.
So, the question is how do i go about doing that?
form.component.html
<div class="form-group">
<label class="control-label" for="drp_severityID">Assign incident to: (default To: Mike Smith)</label>
<select class="form-control" formControlName="memberList">
<option *ngFor="let mem of getMemberList" [value]="mem.usr_index">{{mem.usr_firstname}} {{mem.usr_lastname}}</option>
</select>
</div>