I'm trying to get the right value for the skill.team[variable here].name where Angular gets all the team name from the skill
Here's my code:
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'}]
}