How to apply Style to custom component content in Angular?
Apply a class to the parent (let's say green-button). In the child's css you need to check that my parents have a green-button class, if yes then it should change its color. In the child's css file :host-context(.green-button) button{ color : green } Inside custom-component-example.html: &
Answered Jan 28, 2020 · 1.9K Views Read answer →