input1:<input type="checkbox" ng-model="value1"> <br>
<!--设置true的时候显示什么false的时候显示什么-->
input2:<input type="checkbox" ng-model="value2" ng-true-value="'Yes'" ng-false-value="'No'"> <br>
value1:{{value1}}<br>
value2:{{value2}}
<script>
angular.module('checkbox',[]).controller('con',function ($scope) {
$scope.value1 = true;
$scope.value2 = 'Yes';
})
</script>