NG.VI · Angular 22 practice question
In a Signal Forms model, what value types are supported at the leaves (positions without nested fields)?
Check answer and explanation
Correct answer: Usually primitives or null, plus Date for native date/month/time/week inputs and any type understood by a custom control
Explanation
Leaf values in Signal Forms are typically primitives (strings, numbers, booleans) or null, with Date also supported by native date, month, time, and week inputs, and custom controls able to accept any type they understand.
Common trap
Booleans and null are valid primitive/leaf values in Signal Forms models rather than being rejected. FieldState is the object returned when reading a field, not a requirement placed on leaf values in the model.
Source: Angular docs: Form models — Supported model structures
Checked against the cited text on 2026-11-25.