title: Angularjs (select): Show other attribute from array than the one stored in ng-model
body: <p>I have a select input that give me a choice between thoses objects:</p>
  
  <pre><code>$scope.items = [{"id": "0", "name": "AAA"},
                  {"id": "1", "name": "BBB"},
                  {"id": "2", "name": "CCC"}]
  </code></pre>
  
  <p>I need to store the Id and show the name attribute in the select box when it is selected or when the Id has already been stored in the object to be modified.</p>
  
  <p>The object:</p>
  
  <pre><code>$scope.object
  </code></pre>
  
  <p>I have this has html code, it stores the selected item Id in $scope.object.itemId without problem but the selected item name doesn't show in the select input when it's selected or has been already selected.</p>
  
  <pre><code>&lt;select ng-model="object.itemId"
          ng-options="item.id as item.name for item in items track by item.id"&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Note that the select list is correctly populated with the items names.</p>
  
  <p>Thank's for you help!</p>