This project shows how to use the ControlContainer class to create reusable form components and nest them into other forms to create simple or complex forms on the fly.
Demo can be found here
Run npm i
to install the dependencies. Then run ng serve -o
, the app will open in localhost:4200.