$watch
returns a deregistration function. Calling it would deregister the $watcher
.
var listener = $scope.$watch("quartz", function () {});
// ...
listener(); // Would clear the watch
More Related Contents:
- How does data binding work in AngularJS?
- What are the nuances of scope prototypal / prototypical inheritance in AngularJS?
- Controller not a function, got undefined, while defining controllers globally
- How do I share $scope data between states in angularjs ui-router?
- $on and $broadcast in angular
- AngularJS – How to use $routeParams in generating the templateUrl?
- How to get evaluated attributes inside a custom directive
- Does never resolved promise cause memory leak?
- Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000
- How to compare two objects and get key-value pairs of their differences?
- Watch multiple $scope attributes
- How to filter array when object key value is in array
- How can I make an AngularJS directive to stopPropagation?
- How to use jQuery in AngularJS
- How to set expiration date for cookie in AngularJS
- How do I disable the save password bubble in chrome using Javascript?
- Creating common controller functions
- Non-angular page opened after a click
- How to use parameters within the filter in AngularJS?
- Dynamic form name attribute in Angularjs
- How can I access a variable outside a promise `.then` method?
- random orderBy in AngularJS 1.2 returns ‘infdig’ errors
- Limiting number of displayed results when using ngRepeat
- key-value pairs in ng-options
- deep merge objects with AngularJS
- AngularJS and WebSockets beyond
- How to create a custom input type?
- Using page’s angular JS in chrome extension
- Passing parameter inside $location.path in Angular
- Scope issues with Angular UI modal