• Overview
@angular/forms/signals

debounce

function
stablesince v22.0

Configures the frequency at which a form field is updated by UI events.

API

function debounce<TValue, TPathKind extends PathKind = PathKind.Root>(
  path: SchemaPath<TValue, 1, TPathKind>,
  config: number | 'blur' | Debouncer<TValue, TPathKind>,
): void;
@parampathSchemaPath<TValue, 1, TPathKind>

The target path to debounce.

@paramconfignumber | "blur" | Debouncer<TValue, TPathKind>

A debounce configuration, which can be either a debounce duration in milliseconds, 'blur' to debounce until the field is blurred, or a custom Debouncer function.

@returnsvoid

Description

Configures the frequency at which a form field is updated by UI events.

When this rule is applied, updates from the UI to the form model will be delayed until either the field is touched, or the most recently debounced update resolves.

Jump to details