• Overview
@angular/forms/signals

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>,
  durationOrDebouncer: number | Debouncer<TValue, TPathKind>,
): void;

debounce

void

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.

@parampathSchemaPath<TValue, 1, TPathKind>

The target path to debounce.

@paramdurationOrDebouncernumber | Debouncer<TValue, TPathKind>

Either a debounce duration in milliseconds, 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