An example test visually demonstrating the difference between Underscore.js's throttle() and debounce(), the latter with the "immediate" parameter set true.
An example test visually demonstrating the difference between Underscore.js's throttle() and debounce(), the latter with the "immediate" parameter set true.
This is an example of how to use a custom service to facilitate communicate between multiple controllers using $rootscope as an event bus.
I added in a directive just for fun.