Spec-Zone.ru › Angular

FormRoot

A directive that binds a FieldTree to a <form> element.

API

class FormRoot<T> {
  readonly @Input('formRoot') fieldTree: InputSignal<FieldTree<T>>;
  protected onSubmit(event: Event): void;
}

fieldTree

InputSignal<FieldTree<T>>

onSubmit

void
@parameventEvent
@returnsvoid

Description

A directive that binds a FieldTree to a <form> element.

It automatically:

  1. Sets novalidate on the form element to disable browser validation.
  2. Listens for the submit event, prevents the default behavior, and calls submit() on the FieldTree if it defines its own submission options.

Usage Notes

<form [formRoot]="myFieldTree">
  ...
</form>

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/FormRoot

Spec-Zone.ru

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