Spec-Zone.ru › Angular

validateHttp

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

Signal Form Async Validation

API

function validateHttp<
  TValue,
  TResult = unknown,
  TPathKind extends PathKind = PathKind.Root,
>(
  path: SchemaPath<TValue, 1, TPathKind>,
  opts: HttpValidatorOptions<TValue, TResult, TPathKind>,
): void;
@parampathSchemaPath<TValue, 1, TPathKind>

A path indicating the field to bind the async validation logic to.

@paramoptsHttpValidatorOptions<TValue, TResult, TPathKind>

The http validation options.

@returnsvoid

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/validateHttp

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API