I have this following code :
<md-select ng-change="updateView()"
ng-model="userSelected"
ng-if="authuser.privilege >= 3">
<md-option ng-repeat="user in users"
ng-value="user">{{user.name}}</md-option>
</md-select>
But in my upadateView() when I log the userSelected I always get this whatever I choose :
Object {$$mdSelectId: 1}
I initialise it in my controller like this
$scope.personneSelected = {};
Did I miss something ?