export enum ViewEncapsulation
export enum ViewEncapsulation
exported from angular2/core defined in angular2/src/core/metadata/view.ts (line 1)
Defines template and style encapsulation options available for Component's View
.
See ViewMetadata
.
Members
Emulated
Emulated
Emulate Native
scoping of styles by adding an attribute containing surrogate id to the Host
Element and pre-processing the style rules provided via
ViewMetadata
or ViewMetadata
, and adding the new Host Element
attribute to all selectors.
This is the default option.
Native
Native
Use the native encapsulation mechanism of the renderer.
For the DOM this means using Shadow DOM and creating a ShadowRoot for Component's Host Element.
None
None
Don't provide any template or style encapsulation.