Lets say we have a service holding mobile: boolean
value. Depending on it we display proper TemplateUrl for components which need it.
So it would be something like TemplateUrl: condition ? template_1 : template_2
I can create something similar with require but it won't build for prod properly. When I go to page with it I see null
instead of template (only prod).
Angular version 7