ViewEncapsulation.ShadowDom vs ViewEncapsulation.Native

Viewed 1967

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?

1 Answers

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).

Related