Spec-Zone.ru › Angular

validate

Adds logic to a field to determine if the field has validation errors.

API

function validate<TValue, TPathKind extends PathKind = PathKind.Root>(
  path: SchemaPath<TValue, 1, TPathKind>,
  logic: NoInfer<FieldValidator<TValue, TPathKind>>,
): void;
@parampathSchemaPath<TValue, 1, TPathKind>

The target path to add the validation logic to.

@paramlogicNoInfer<FieldValidator<TValue, TPathKind>>

A Validator that returns the current validation errors.

@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/validate

Spec-Zone.ru

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