This article explains step by step how to create a dynamic form in Angular. It covers all essential classes of a reactive form and explains how the FormArray class can be used to create a dynamic form.
Now that we learned how data was shared among classes before services and that this wasn’t very DRY or scalable, let’s learn how to use services for dependency injection.
Best practices teach us the DRY principle: Don’t repeat yourself. Let’s get a real-world understanding of why this principle matters by looking at how we built components and classes before services.