What are FormArray and dynamic forms?

Angular forms · Freshers and experienced

Model answer

A FormArray holds a list of controls or groups that can grow or shrink, such as several phone numbers or order lines. You add and remove items with push() and removeAt(), and loop over controls in the template with @for.

For forms built from configuration, you can create controls in code from a JSON-like definition. Keep keys stable and use track so Angular does not recreate every row when one changes.

Learn this topic

Angular Tutorial: Beginner to Advanced .

Sign in to add your own answer.

More questions