title: Initial ng-model value not set in select
body: <p>I have an enum (I code using TypeScript):</p>
  
  <pre><code>export enum AddressType
  {
      NotSet = 0,
  
      Home = 1,
      Work = 2,
      Headquarters = 3,
  
      Custom = -1,
  }
  </code></pre>
  
  <p>Then in my controller I have a field named type, into which I set the initial value that should be selected in the select input (I set it to AddressType.Headquarters).</p>
  
  <p>Finally, in my HTML I put the following:</p>
  
  <pre><code>&lt;select ng-model="Ctrl.type" ng-options="addressType for addressType in Ctrl.getAddressTypes()"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>Everything seems to work fine except one thing: for some reason Angular does not select "3" (Headquarters) initially in the select after all bindings have been updated. Angular creates an extra option like this instead:</p>
  
  <pre><code>&lt;option value="?" selected="selected"&gt;&lt;/option&gt;
  </code></pre>
  
  <p>So for some reason Angular cannot figure the initial option to select in the combo.</p>
  
  <p>If the user selects another option of the combo box, Ctrl.type is updated properly so the binding works fine for that part. Basically my problem is just that the option that should be selected initially is not selected as expected.</p>
  
  <p>What am I missing here that is causing that problem?</p>