We offer a service that collects a vast amount of data to be displayed in an angular 5 application. The model used for displaying this data is constantly evolving and shared across multiple applications, so I need to import it dynamically.
My approach involves querying the model in a service, passing it to the necessary components, and having them display it as CSS rules.
The process of generating CSS rules within the component is successful, resulting in a variable holding a string containing all the rules:
this.css
In my HTML code, I attempted the following:
<style>
{{css}}
</style>
Unfortunately, regardless of what I try, the style tags are always removed.
Why are they being removed? How can I resolve this issue? Is there an alternative method, such as providing the styles to Angular for inclusion in the header?