title: How to implement a variable for an array (Angular 4)
body: <p>I'm trying to get the right value for the skill.team[<em>variable here</em>].name where Angular gets all the team name from the skill</p>
  
  <p>Here's my code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;select [(ngModel)]="skill.teams[1].name" name="teamName" id="teamName" class="form-control"&gt;
                      &lt;option *ngFor="let skill of skills" [value]="skill.teams[1].name"&gt;{{ skill.teams[1].name }}&lt;/option&gt;
                    &lt;/select&gt; 
  </code></pre>
  
  <p><strong>ARRAY</strong></p>
  
  <pre><code>skill = {
    _id:'',
    name:'',
    teams:[{name:'team1'},{name:'team2'}]
  } 
  </code></pre>