NG.VI · Angular 22 practice question
Given this typed reactive form model, which set of APIs can a developer call directly on the login FormGroup instance to read or update its state?
import { FormControl, FormGroup } from '@angular/forms';
const login = new FormGroup({
email: new FormControl(''),
password: new FormControl(''),
});
Check answer and explanation
Correct answer: login.value, login.controls, and login.patchValue
Explanation
Angular's FormGroup provides APIs such as value, controls, and patchValue for reading values, accessing child controls, and updating the form model.
Common trap
fields, syncModel, and setErrorsOnly are invented names that do not exist on FormGroup. Signal-style callables like model(), state(), and commit() are not FormGroup APIs.
Source: Angular docs: Typed Forms — Overview of Typed Forms
Checked against the cited text on 2026-11-25.