Currently, I am creating a front-end using Angular 6 and facing the challenge of having components with varying html structures based on the user who is logged in.
The number of templates required can range from 2 to over 20, so my preference would be to store them in separate files and have the component point to the correct templateURL instead of relying on *ngIf statements for rendering different parts of a template.
Is there a feasible solution or approach to achieve this dynamic templating in Angular 6?