Angular, Front End Development, Web Development, Web Design, Shadow Dom.
This is the default behaviour when a component defines its own CSS styles. If a component does not define CSS styles, we can force this behaviour by setting ViewEncapsulation.Emulated for the encapsulation property. @Component({ selector: 'my-component', encapsulation: ViewEncapsulation.Emulated })