FieldStore

Field store interface that provides reactive access to the state of a field created with injectField or the *formischField directive.

Generics

Definition

Explanation

Every reactive property of the field store is an Angular signal, so you call it as a function. The only exception is path, which is a plain value.

The name signal contains the JSON-stringified path of the field, which the [formischControl] directive writes to the name attribute of the element. It is also useful as the id of an input so that a label and an error message can reference it.

Use setInput to change the value of the field programmatically. It updates the input and validates it like an input event would, so whether validation runs is controlled by the validate and revalidate config of your form — see the validation guide.

The field store additionally carries an internal element-binding contract that the [formischControl] directive consumes. It is not part of the public API.

Contributors

Thanks to all the contributors who helped make this page better!

  • GitHub profile picture of @fabian-hiller

Partners

Thanks to our partners who support the project ideally and financially.

Sponsors

Thanks to our GitHub sponsors who support the project financially.

  • GitHub profile picture of @vasilii-kovalev
  • GitHub profile picture of @UpwayShop
  • GitHub profile picture of @ruiaraujo012
  • GitHub profile picture of @hyunbinseo
  • GitHub profile picture of @nickytonline
  • GitHub profile picture of @kibertoad
  • GitHub profile picture of @caegdeveloper
  • GitHub profile picture of @Thanaen
  • GitHub profile picture of @bmoyroud
  • GitHub profile picture of @ysknsid25
  • GitHub profile picture of @dslatkin