title: How to setup angularjs select to work with objects
body: <p>Code:</p>
  
  <pre><code>&lt;select ng-model="ticket.owner.id" 
          ng-options="user.id as getFullName(user) for user in users" required&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The above example actually works. However when I send the modified object to my rest api, the only changed value of the object is the ID. E.g. when option 1 is selected and I select option2 and submit, the object associated to option1 is send, but with the ID of option2.</p>
  
  <p>When I have:</p>
  
  <pre><code>&lt;select ng-model="ticket.owner" 
          ng-options="user as getFullName(user) for user in users" required&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and change the selected value and submit, the correct object is transmitted to rest api. However the select box is broken, it shows an empty field and does not set the selected value.</p>
  
  <p>Any ideas we can use the select box to select objects but not just ID's?</p>