NG.VI · Angular 22 practice question

A developer is designing a data model for Signal Forms and considers using custom class instances and Map objects for nested sections. What does Signal Forms require for the structural layer it walks to build the field tree?

Choose one answer
Check answer and explanation

Correct answer: Plain JavaScript objects and arrays

Explanation

Signal Forms walks the model's structural layer to construct the field tree, and that layer must consist of plain JavaScript objects and arrays.

Common trap

FormGroup and FormArray belong to classic reactive forms, not the structural layer of a Signal Forms model. Map and Set collections are not plain JavaScript objects or arrays, so they do not satisfy the structural layer requirement.

Source: Angular docs: Form models — Supported model structures
Checked against the cited text on 2026-11-25.

Report an error in this question