m7md2112
m7md2112

Reputation: 327

ViewEncapsulation.ShadowDom vs ViewEncapsulation.Native

when trying to change encapsulation 4 options appear Emulated, Native, None, and finally new one "ShadowDom". I know ViewEncapsulation.Native for use Shadow DOM.

available options for encapsulation

so what're benefits from using ViewEncapsulation.ShadowDom?

Upvotes: 6

Views: 2399

Answers (1)

Zlatko
Zlatko

Reputation: 19569

According to angular.io, Native is now deprecated in favor of ShadowDOM implementation. The reason for the change is that the Native ViewEncapsulation uses the deprecated version of ShadowDOM, and the new one uses the current version of the standard. (For the browsers that support it).

Upvotes: 8

Related Questions