Going through angular docs. It is obvious that there is no provision for importing templates dynamically in the templateUrl property of @Component decorator, so is there a way or workaround to achieve this in angular7+?
My templates can be more than two, in fact in most case above 4 as of now. The issue is that I have about four websites that shares the same code and functionality but different layout for each corresponding page of the 4 sites. So I just need a dynamic templateUrl reference in other to use the same code-base but just switch template based on some condition that validate the current website (probably from the env variable)