AngularJS: Checkbox with default values (ng-true-value)
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.0rc8.js"></script>
<div ng-controller="MyCtrl">
<input type="checkbox"
ng-model="selection"
ng-true-value="enabled=200"
ng-false-value="disabled">
{{selection}} ---------- {{enabled}}
</div>
JavaScript
function MyCtrl($scope) {
$scope.selection = 'enabled';
$scope.enabled=''
}