Code:
<select ng-model="ticket.owner.id"
ng-options="user.id as getFullName(user) for user in users" required>
</select>
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.
When I have:
<select ng-model="ticket.owner"
ng-options="user as getFullName(user) for user in users" required>
</select>
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.
Any ideas we can use the select box to select objects but not just ID's?