This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 3 files changed +4
-0
lines changed
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,8 @@ bind only to specified list of events. I.e. `ng-model-options="{ updateOn: 'blur
201
201
and validate only after the control loses focus. You can set several events using a space delimited
202
202
list. I.e. `ng-model-options="{ updateOn: 'mousedown blur' }"`
203
203
204
+ <img alt="animation showing debounced input" src="img/guide/forms-update-on-blur.gif">
205
+
204
206
If you want to keep the default behavior and just add new events that may trigger the model update
205
207
and validation, add "default" as one of the specified events.
206
208
@@ -238,6 +240,8 @@ You can delay the model update/validation by using the `debounce` key with the
238
240
{@link ng.directive:ngModelOptions ngModelOptions} directive. This delay will also apply to
239
241
parsers, validators and model flags like `$dirty` or `$pristine`.
240
242
243
+ <img alt="animation showing debounced input" src="img/guide/forms-debounce.gif">
244
+
241
245
I.e. `ng-model-options="{ debounce: 500 }"` will wait for half a second since
242
246
the last content change before triggering the model update and form validation.
243
247
You can’t perform that action at this time.
0 commit comments