title: Angular: ngOptions not displaying selected ng-model value
body: <p>I can't seem to figure out why <code>ng-options</code> and <code>ng-model</code> aren't working correctly within <code>&lt;select&gt;</code>: selected value <code>name</code> isn't being shown, although the <code>code</code> in the <code>element</code> object is correct...</p>
  
  <p>Here are my objects:</p>
  
  <pre><code>$scope.hierarchyWorkElements = [];
  $scope.worksToBeExecuted = [
   {
    id: 1,
    name: "Create Address Point"
   },
   {
    id: 2,
    name: "Create Segment"
   }
  ];
  </code></pre>
  
  <p>One object example from <code>$scope.hierarchyWorkElements</code> array:</p>
  
  <pre><code>$$hashKey: "07H",
  code: "0",
  id: "element1",
  name: ""
  </code></pre>
  
  <p>And here is the <code>HTML</code>:</p>
  
  <pre><code>&lt;div data-ng-repeat="element in hierarchyWorkElements" class="row top-buffer"&gt;
    &lt;div class="col-sm-10"&gt;
      &lt;select class="form-control"
         ng-model="element.code"
         ng-options="item.id as item.name for item in worksToBeExecuted"&gt;&lt;/select&gt;
    &lt;/div&gt;
  &lt;/div
  </code></pre>
  
  <p>Thanks in advance and kind regards!</p>