title: Select particular item in SELECT drop-down using angularjs when initialized from object array
body: <p>I have a code of SELECT element like this</p>
  
  <pre><code> select(ng-model="chosenProject" id="chosenProject"  ng-options="c.name for c in selectItems")
  </code></pre>
  
  <p>where <code>selectItems</code> are <em>arrays of objects</em>, and each object got <em>name</em> and <em>value</em> fields. Later in <code>chosenProject.value</code> I read an object (with value and name fields) of chosen item.</p>
  
  <p>Now I also need to pre-select some element based on its value. If I do <code>$scope.chosenProject.value=*somevaluenumber*</code>,  <code>$scope.chosenProject.value.value =*somevaluenumber*</code> it does not seem to work.  </p>
  
  <p>I can not change the declaration; chosenProject gets the whole object of selected item and that's what I use later in code. </p>