I need help determining the correct value for skill.team[variable here].name in Angular, where all team names are retrieved from the skill.
Below is the code snippet:
HTML
<select [(ngModel)]="skill.teams[1].name" name="teamName" id="teamName" class="form-control">
<option *ngFor="let skill of skills" [value]="skill.teams[1].name">{{ skill.teams[1].name }}</option>
</select>
ARRAY
skill = {
_id:'',
name:'',
teams:[{name:'team1'},{name:'team2'}]
}