I struggled with this problem for a while. What worked was to bind the input to an object instead of a primitive.
<!-- Partial -->
<input type="checkbox" ng-model="someObject.someProperty"> Check Me!
// Controller
$scope.someObject.someProperty = false
More Related Contents:
- How to check if any Checkbox is checked in Angular
- AngularJS: ngInclude vs directive
- How do I enable Webstorm intellisense for AngularJS when writing CoffeeScript
- Why form undefined inside ng-include when checking $pristine or $setDirty()?
- Is this a “Deferred Antipattern”?
- AngularJS 1.5+ Components do not support Watchers, what is the work around?
- Angular HttpPromise: difference between `success`/`error` methods and `then`’s arguments
- How do you prevent duplicate user properties in Firebase?
- What is the difference between ng-if and ng-show/ng-hide
- Link vs compile vs controller
- How to format date in angularjs
- AngularJS Paging with $location.path but no ngView reload
- Angularjs loading screen on ajax request
- AngularJS UI Router – change url without reloading state
- angular.js link behaviour – disable deep linking for specific URLs
- Can I inject a service into a directive in AngularJS?
- Otherwise on StateProvider
- AngularJS ng-options create range
- How can I check which version of Angular I’m using?
- angular.min.js.map not found, what is it exactly?
- Display number always with 2 decimal places in
- Run a controller function whenever a view is opened/shown
- validate natural input number with ngpattern
- Alternative to ng-show/-hide or how to load only relevant section of DOM
- Use filter on ng-options to change the value displayed
- $http Auth Headers in AngularJS
- Karma throws error: Can not load “ng-html2js”, it is not registered
- ng-click doesn’t work within the template of a directive
- AngularJS – Why use “Controller as vm”?
- Angularjs ui-router abstract state with resolve