Visitar URL original
validateAsync • Angular
The Wayback Machine - https://web.archive.org/web/20260414150055/https://angular.dev/api/forms/signals/validateAsync
    • Overview
@angular/forms/signals

validateAsync

function

Adds async validation to the field corresponding to the given path based on a resource. Async validation for a field only runs once all synchronous validation is passing.

API

function validateAsync<
  TValue,
  TParams,
  TResult,
  TPathKind extends PathKind = PathKind.Root,
>(
  path: SchemaPath<TValue, 1, TPathKind>,
  opts: AsyncValidatorOptions<TValue, TParams, TResult, TPathKind>,
): void;
Jump to details