As of angular 1.3 this is way easier to accomplish, using ngModelOptions:
<input ng-model="search" ng-change="updateSearch()" ng-model-options="{debounce:3000}">
Syntax: {debounce: Miliseconds}
More Related Contents:
- Is this a “Deferred Antipattern”?
- How to set focus on input field?
- When to favor ng-if vs. ng-show/ng-hide?
- AngularJS 1.5+ Components do not support Watchers, what is the work around?
- How to use the ‘replace’ feature for custom AngularJS directives?
- Link vs compile vs controller
- Angular.js directive dynamic templateURL
- What is the best way to conditionally apply attributes in AngularJS?
- Unit Testing AngularJS directive with templateUrl
- What is the difference between ng-app and data-ng-app?
- Angularjs loading screen on ajax request
- Angular: calling controller function inside a directive link function using &
- Directive isolate scope with ng-repeat scope in AngularJS
- AngularJS: ng-repeat list is not updated when a model element is spliced from the model array
- calling method of parent controller from a directive in AngularJS
- Enable angular-ui tooltip on custom events
- Accessing attributes from an AngularJS directive
- angularjs share data config between controllers
- Call a method of a controller from another controller using ‘scope’ in AngularJS
- AngularJS leaves comments in HTML: is it possible to remove them?
- When to use the AngularJS `$onInit` Life-Cycle Hook
- AngularJS – how to override directive ngClick
- AngularJS: ngInclude vs directive
- Pass form to directive
- Angular directive name: only lower case letters allowed?
- What is ng-transclude?
- Understanding the transclude option of directive definition?
- angularjs text area character counter
- ng-click doesn’t work within the template of a directive
- creating a new directive with angularjs