title: setting Angular select ng-init to first value in array
body: <p>I have a simple select element that I am trying to enforce a value being present to submit the form and I have tried both setting the required attribute as well as using ng-init to ensure there is a value selected and both fail. </p>
  
  <p>I am using <code>ng-options</code> to create a list of values from an array of Objects that have a ref property. Then I would like to use <code>ng-init</code> to set the shown value to the first Object.ref in the array.</p>
  
  <pre><code>&lt;select name="refmarker" class="input-block-level form-width-adjust" ng-model="model.refmarker" ng-options="rm.ref for rm in refmarkers" ng-disabled="editable" ng-init="model.refmarker='refmarkers[0].ref'" required&gt;&lt;/select&gt;
  </code></pre>
  
  <p>I have tried the following without any luck</p>
  
  <pre><code>ng-init="model.refmarker='refmarkers[0]'"
  ng-init="model.refmarker='refmarkers[0].ref'"
  ng-init="model.refmarker='rm.ref'"
  </code></pre>
  
  <p>Also the <code>required</code> attribute doesn't work ? Is the angular select element buggy or am I doing something wrong?</p>