<span class="selector-label">Team: </span>
<select class="selector-component" [(ngModel)]="selectedTeamId">
<option *ngFor="#team of teams" [value]="team.id">{{team.name}}</option>
</select>
I am trying to add protractor tests for the selectedTeamId which is the first one sorted alphabetically if one user assigned to multiple teams. I think I should use [(ngModel)]="selectedTeamId", but not sure how to do it. thanks. I know how to get all teams, but I need to get the first one which is the logical implemented in selectedTeamId method.