How to import css based on condition like below,
Angular7
In styles.css
if (data === 'mobile') {
@import './assets/css/common1.css';
} else {
@import './assets/css/common2.css';
}
My problem is:
I have two modules which loads different application in my project.
{
path : ''
loadChildren: Module1
}
{
path : 'ng7'
loadChildren: Module2
}
Here, I want to use Module 1 - common1.css and Module 2 - common2.css