Forms for Angulars
Angular forms are the tools for collecting and validating user input. Reactive forms define the form model in TypeScript with FormGroup and FormControl, and template-driven forms use directives in the HTML. Both support validators and error display, and accessible markup ensures labels and errors work for screen reader users.
Stage: Application Structure · Part of the Angular roadmap · Last reviewed 19 November 2026
What to learn in Forms
- Build a reactive form with FormBuilder and typed controls
- Add built-in validators and write a custom validator function
- Display validation messages only after a field is touched
- Create a dynamic list of inputs with FormArray
- Associate labels and error text with inputs for accessibility
Forms interview questions
When should you choose reactive forms over template-driven forms?
Choose reactive forms for complex or dynamic forms, because the model is explicit in code, easy to test, and supports custom validators, FormArray and value streams. Template-driven forms suit small, simple forms where you want less code and the logic stays in the template.
How does a custom validator work in Angular?
A validator is a function that receives a control and returns null when the value is valid, or an object of error keys when it is not. You attach it to a FormControl or FormGroup, and the template reads the errors to show messages. Async validators return a promise or observable.
Where Forms fits in the Angular roadmap
Forms belongs to the Application Structure stage (intermediate level), which takes about 24 hours. Routing and forms.
Other units in this stage
Back to the full Angular roadmap