• Overview
@angular/forms/signals

validateHttp

function

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.

API

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

validateHttp

void

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.

@parampathFieldPath<TValue, TPathKind>

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

@paramoptsHttpValidatorOptions<TValue, TResult, TPathKind>

The http validation options.

@returnsvoid
Jump to details