I want to when edit user to fill all field in form automatically. I managed to fill input and select fields, but don't know how to do that with checkbox, to be checked if they need to be checked. As a matter of fact I did but after a few days that solution stopped working even nothing has changed. I wrote my code in this way: html
<label><input type="checkbox" value="1" name="admin" ng-model="userDataCtr.user.admin" ng-checked="userDataCtr.user.admin">ROLE_CRO</label>
And value of userDataCtr.user.admin is 1, but checkbox isn't checked. I tried with integer, string, but nothing happened.
Does anyone can help me?
Thanks
Aucun commentaire:
Enregistrer un commentaire