I have a table with a list of users.
Each user can belong to a group. Group is selected in a `<select>` menu, each has id and name. **After page load, proper group is not selected in the menu.** When choosing a different option in the menu, user.group\_id gets updated properly.

My code:

```
<select
ng-model="user.group_id"
ng-options="group.id as group.name for group in groups">
</select>

```