Setting ngTrueValue and ngFalseValue to numbers
问题 Update : question is obsolete for latest Angular version, see tsh's comment on this post I have bound a checkbox to a value: <input type="checkbox" ng-model="checkbox" ng-true-value="1" ng-false-value="0" /> The value of the checkbox is set to 1 in the controller: function Controller($scope) { $scope.checkbox = 1 } However, initially the checkbox does not appear checked. If I change the initial value of $scope.checkbox to "1" , it does. (jsfiddle demo) I have tried all kinds of variations: ng