title: How to select option in Angular by key?
body: <p>I have the followinf Angular JS code:</p>
  
  <pre><code> &lt;select ng-model="formData.beginDay[$index]" class=form-control" ng-required="!formData.current[$index]"&gt;
                              &lt;option ng-repeat="day in data.dateList.day" value="{{day.id}}" ng-selected="day.id == '0'"&gt;
                                  {{day.value}}
                              &lt;/option&gt;
                          &lt;/select&gt;
  </code></pre>
  
  <p>The object <code>data.dateList</code> looks as:</p>
  
  <pre><code>0: {id: 0, value: "G"}
  id: 0
  value: "G"
  </code></pre>
  
  <p>I set attribute <code>ng-selected</code>:</p>
  
  <pre><code>ng-selected="day.id == '0'"
  </code></pre>
  
  <p>But It does not select first element in select list. </p>