Arrgh, Having problems with Dynamically built components using ReactiveForms.
Need to trigger and Mat-Dialog and load set of components in it - works fine. Need to build some of the components dynamically from a mapping array - works fine. Need to build nested reactive forms using CVA (control value assessor) - this is the problem.
I have a working nested form using CVA that updates the form data correctly ... Unless I build the components dynamically. If I use dynamic components they are ignored in the form updates. Not sure how to fix this. My app will be very complex network of forms, so need to figure this out!
I have used the Angular.io guide for dynamic components.
Angular.io - resolve dynamic components
and followed this guide for CVA implementation
Does anyone have any Ideas?? Had issues with Stackblitz so pushed code to gitHub