Currently I'm trying to create one Angular Element
To make the Element/Component reusable elsewhere, we need to somehow let parent/host component decide style for the Angular Element i'm working on
I already read some StackOverflow material which lead me to believe all the ways are deprecated at the moment
I think this is what we can do at the moment
<host-element>
<my-element [getStyle] = "getStyleFnFromHost"> </my-element>
</host-element>
I don't feel like this is a good approach, however.
So what do you think I should do at the moment?
Edit: I would like to clarify that the difference from my question to the question that I refer to is that: I would like to find a good way inject CSS/Style from the parent element to the child element. That does not necessarily involves cascading CSS from parent to Child elements