I want the users of my app to have the ability to chose a theme. Therefore I prepared several scss stylesheets which differ in some sort. I now need to load the according stylesheet due to the selected theme. I did not find any working solution on the web nor on stackoverflow.
I tried to build a component for each theme including the according scss in the styleUrls property and using dynamic component loader. I need view encapsulation to set to none. Due to that the styles are not removed if the component gets destroyed. Is there any way to delete styles set by a component with encapsulation set to none?
Or is there any other way to set scss stylesheets dynamically?