Reputation: 327
when trying to change encapsulation 4 options appear Emulated, Native, None, and finally new one "ShadowDom". I know ViewEncapsulation.Native
for use Shadow DOM.
so what're benefits from using ViewEncapsulation.ShadowDom
?
Upvotes: 6
Views: 2399
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