If you don’t want to use a watcher, you can do something like this:
<input type="checkbox" ng-init="checkStatus=false" ng-model="checkStatus" ng-click='doIfChecked(checkStatus)'>
More Related Contents:
- Checkbox not binding to scope in angularjs
- How to cancel an $http request in AngularJS?
- Difficulty with ng-model, ng-repeat, and inputs
- When writing a directive in AngularJS, how do I decide if I need no new scope, a new child scope, or a new isolated scope?
- How to access cookies in AngularJS?
- AngularJS – How to structure a custom filter with ng-repeat to return items conditionally
- Can I use ng-model with isolated scope?
- AngularJS : Where to use promises?
- Confused about Angularjs transcluded and isolate scopes & bindings
- AngularAMD + ui-router + dynamic controller name?
- how to inject dependency into module.config(configFn) in angular
- AngularJS : $q -> deferred API order of things (lifecycle) AND who invokes digest?
- angularjs share data config between controllers
- Sharing data between directives
- How can I detect onKeyUp in AngularJS?
- Angularjs: ng-options group by
- Filter by multiple columns with ng-repeat
- Recommended way of getting data from the server
- Should I care about W3C validation?
- Compare objects in Angular
- Rendering Highcharts using Angular js Directives
- How do I prevent reload on named view, when state changes? AngularJS UI-Router
- Is it possible to use ng-include without web server?
- How to master AngularJS? [closed]
- Understanding the transclude option of directive definition?
- How to integrate AngularUI to AngularJS?
- angularjs text area character counter
- how to pass querystring in angular routes?
- Good way to dynamically open / close a popover (or tooltip) using angular, based on expression?
- scope and controller instantiation with ui router