Styling Components Using :host CSS Selector
Use the :host pseudo-class selector to target styles in the element that hosts the component (as opposed to targeting elements inside the component’s template).
Source:
<!-- demo.component.html -->
Demo component!
<!-- demo.component.css -->
:host {
...
vijaymangal.hashnode.dev1 min read