ViewEncapsulation
enum
stable
Defines the CSS styles encapsulation policies for the Component
decorator's
encapsulation
option.
Emulated
None
ShadowDom
Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates a ShadowRoot for the component's host element which is then used to encapsulate all the Component's styling.
IsolatedShadowDom
Similar to ShadowDom
, but prevents any external styles from leaking into the
component's ShadowRoot. This is useful when you want to ensure that the component's
styles are completely isolated from the rest of the application, including global styles.
Description
Defines the CSS styles encapsulation policies for the Component
decorator's
encapsulation
option.
See encapsulation
.
Jump to details