This code part of the my article Creating Dynamic Forms in Angular: A Step-by-Step Guide, on the guide, I explain how to create a dynamic form using angular and reactive forms, start from simple scenario to other case suggested by the community.
I want to say thanks to everyone to vote a start and help to improve this article to help other developers to solve a common task for every Angular developer.
Feel free to checkout the code or run in StackBlitz.