delayed-change

Directive for grouping multiple ng-change functions into one call
Homepage:
1 person uses it
Author: 3439947?v=3 jpnauta

delayed-change

An AngularJS plugin to group multiple change events into one call. Useful for reducing the number of calls done to a high-intensive ng-change function.

Requirements

  • AngularJS 1.1.x+

Usage

First, include the delayed-change module in your application:

Next, use the directive in the same way you would use ng-change

NOTE: The callback function given may not be called each and every time the ng-model is changed. This is because the directive tries group multiple changes into one event.

Options

To customize the default options, simply use the delayed-options directive:

Available Options:

  • delay (default: 300) - The max time to wait before calling change function, in milliseconds
  • start - Function called before change function is called
  • end - Function called after change function is called

Author

Jeremy Nauta

comments powered by Disqus
This page was last updated over 3 years ago.