Hi,
I have been trying various ways to reorder, hide or add/remove extra validation of form fields dynamically based on a configuration json.
Use Case: Customer has specific business rules that must be applied to a screen dynamically
When I try to do this in Angular 8 the only way I have found that works is by storing the component template in a string (This is not ideal since making a component as a string is a mess)
I then manipulate the template string using DOMParser prior to generating the component using compileModuleAndAllComponentsSync function.
Is there any way that this can be achieved without using a string?
In Angular 1 we were able to modify the template string in the compile function but this is no longer possible.
Any help with this is much appreciated
Thanks
Damien