templating-resources
templating-resources copied to clipboard
debounce on input change, but immediate on blur
Hi!
It would be great to have the same functionality as in angular 1: https://docs.angularjs.org/api/ng/directive/ngModelOptions That is: ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }"
The use case is that we want a debounce delay when typing (on e.g. input fields) but an immediate update on blur.
+1
well debounce does not know about events updateTrigger is very trigger happy..
the way I see it is there can be another behavior combining the two.. but its kinda not dry and not separated.. definitly doable though..
plugin?
I guess rx from events or something should do the trick
@EisenbergEffect can be closed
I'm pretty sure that a custom binding behavior could be written to do this. If someone wanted to submit a PR to the current debounce
behavior to add that as a setting, we could do that too. This one is definitely worth adding to the vNext. Something for @fkleuver to consider to make sure it's possible in vNext. Also, maybe @bigopon would be interested in implementing it. He's been shoring up some of the missing behaviors in vNext.