<select class="form-control" (change)="onChange(user.id)">
<option disabled selected="selected">By User</option>
<option *ngFor="let user of allUsers">{{user.first_name}} {{user.first_name}}</option>
</select>
The first name and last name is only for displaying what value i need to send to the ts file is user.id
(change)="onChange(user.id)
does work because it is outside of the loop. I need to send the value of selected user id on very change.