This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 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
201201and validate only after the control loses focus. You can set several events using a space delimited
202202list. I.e. `ng-model-options="{ updateOn: 'mousedown blur' }"`
203203
204+ <img alt="animation showing debounced input" src="img/guide/forms-update-on-blur.gif">
205+
204206If you want to keep the default behavior and just add new events that may trigger the model update
205207and validation, add "default" as one of the specified events.
206208
@@ -238,6 +240,8 @@ You can delay the model update/validation by using the `debounce` key with the
238240{@link ng.directive:ngModelOptions ngModelOptions} directive. This delay will also apply to
239241parsers, validators and model flags like `$dirty` or `$pristine`.
240242
243+ <img alt="animation showing debounced input" src="img/guide/forms-debounce.gif">
244+
241245I.e. `ng-model-options="{ debounce: 500 }"` will wait for half a second since
242246the last content change before triggering the model update and form validation.
243247
You can’t perform that action at this time.
0 commit comments