There is already an answered question that explains the difference between ViewEncapsulation.Emulated
, ViewEncapsulation.Native
ad ViewEncapsulation.None
.
Let's say there is Electron application that is guaranteed to be bundled with Chromium version that natively supports shadow DOM and ViewEncapsulation.Native
. How can this case benefit from native encapsulation to avoid emulation overhead?
Another possible case is debugging views in Angular 2 application that are heavily cluttered with helper attributes and namespaced CSS classes due to ViewEncapsulation.Emulated
.
Can default encapsulation be changed to ViewEncapsulation.Native
globally for all components that don't specify encapsulation
?
What are the other practical appliances of ViewEncapsulation.Native
?