HTML:
<select ng-model="item.visible">
        <option value="0">NO</option>
        <option value="1">YES</option>
</select>
ITEM:
$scope.item.visible = 1; //doesn't work
$scope.item.visible = "1" //works fine
I absolutely don't understand why first solution doesn't work and my problem is that I'm getting this value from database and I can't change it to string. I think solution could be use a directive. But I'm sure there will be much better solution. Thanks for help.
ng-optionswill avoid such corner case