How to implement Angular with assemblies of different templates?

Good day) in my project there are regular web version and I want to do in this project a mobile phone, via ionic everything is fine and everything is going great, please tell me how best to implement different presentation templates.
Let's say I have header.component.html and when you build for mobile, I instead was taken header-mobile.component.html
April 3rd 20 at 18:49
1 answer
April 3rd 20 at 18:51
through it trough environment variable using process.env in the code, and the decorator @Component () in the temaplteUrl substitute the path depending on the value of the environment variable

Find more questions by tags Angular