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>


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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.

Reply via email to