Suppose I have two style sheet file: style.css and style-rtl.css which second is for right to left support. How can I serve different style sheet file based on a condition in Angular 2. Notice that one of them should be applied. Any help would be appreciated.
Asked
Active
Viewed 83 times
0
-
Look at this answer : http://stackoverflow.com/questions/574944/how-to-load-up-css-files-using-javascript. Then just import the files using javascript – Andrei Tumbar Feb 03 '17 at 21:09
-
@AndreiTumbar Well, it's kinda different in Angular 2. – Roy Feb 03 '17 at 22:45