I have two routes/views in my AngularJS application that are using conflicting CSS. I have two separate external stylesheets that I want to use for these routes. For example foo.css
for foo
route and bar.css
for bar
route. That way I can resolve the conflict.
However, I will have to load bar.css
and unload foo.css
when navigating from foo
to bar
.
How do I do this? Is there a library/module that can help me to achieve this scenario?
I've looked into ocLazyLoad
, but I'm not sure how to unload the loaded CSS.