Angular · Middle · Question 38 of 75
What is FormArray for?
- ✓Correct answer: A dynamic list of controls or groups, e.g. a list of phone numbers the user can add and remove
- 2Storing an array value in a single
FormControl - 3Validating that the value is an array
Explanation
You push and removeAt controls at runtime and render them with @for and [formGroupName]="$index". The array's value is an array of the controls' values.