NG.VI · Angular 22 practice question

A developer is working with a Signal Forms field tree in a template and wants to retrieve the FieldState object for an individual field. How is that FieldState object obtained?

Choose one answer
Check answer and explanation

Correct answer: By calling the field as a function

Explanation

In Signal Forms, every field in the field tree is a function, and invoking that function returns the field's FieldState object.

Common trap

Reading a .state property is a common guess, but Signal Forms fields are functions that must be called to obtain FieldState. FieldState is retrieved by invoking the field function rather than through dependency injection with inject().

Source: Angular docs: Form models — Reading from field state
Checked against the cited text on 2026-11-25.

Report an error in this question