title: How do I set a default angular select option as the last option?
body: <p>I have the following code. I'm trying to set the default option as the last option in the select box.  If I hardcode the length in the ng-init it works.  <code>ng-init="mySelect = 3"</code> But not with <code>ng-init="mySelect = myData.length-1"</code></p>
  
  <p>Any ideas how to set it to the last option?</p>
  
  <pre><code>$scope.myData = ['a','b','c'];
  
  &lt;select class="form-control" ng-init="mySelect = myData.length-1" ng-model="mySelect"&gt;
      &lt;option ng-repeat="$index in  myData" value="{{ $index }}" &gt;Select This Option #({{ $index+1 }})&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>