© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Angular https://doi.org/10.1007/978-1-4842-8176-5_22

22. Using the Forms API, Part 2

Adam Freeman1  
(1)
London, UK
 
In this chapter, I continue to describe the Angular forms API, explaining how to create form controls dynamically and how to create custom validation. Table 22-1 summarizes the chapter.
Table 22-1

Chapter Summary

Problem

Solution

Listing

Creating and managing form controls dynamically

Use a FormArray object

1–6

Validating dynamically created form controls

Use a control’s position in its enclosing FormArray as identification during the validation process

7, 8

Altering the values produced by dynamically created controls

Override the methods defined ...

Get Pro Angular: Build Powerful and Dynamic Web Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.