i have a very simple problem :
Here is my object inside my controller :
$scope.footballeur = {'identifiant':6,'prenom':'Thierry','nom':'Chalamerto','categorie':1,'ville':'Paris','age':17,'date_embauche':'','salaire':'28'};
Please notice the int variable categorie .
Now in my view, i 've got a VERY SIMPLE select like this :
<div class="input-group">
<span class="input-group-addon stdgp"></i> Catégorie</span>
<select ng-init="footballeur.categorie" ng-model="footballeur.categorie" class="form-control" >
<option value="1">Junior</option>
<option value="2">Confirmé</option>
</select>
</div><br>
Then, believe me or not, but the select is unable to get setted by my value. It shows a blank line , it is really annoying.
I would really appreciate if somebody has an idea, the only thing who works is removing ng-model and replacing it by ng-value, but then, i can't save the new values chosen by the user !
I really dont know what to do, i 've tried ng-value instead of value, it still doesn't work !! I've removed ng-init, it changes nothing still ! there is not even a loop inside my SELECT , it is supposed to work directly !
here is a pic of the horrible situation :
