The AngularJS 2 has the capacity to use Shadow DOM native that is part of web components when setting encapsulation: ViewEncapsulation.Native
as I understand...
But this give some questions:
encapsulation: ViewEncapsulation.Native
will it fallback to ViewEncapsulation.Emulated
when the browser doesn't support Shadow DOM?encapsulation: ViewEncapsulation.Native
?There is no fallback from ViewEncapsulation.Native
to ViewEncapsulation.Emulated
when the browser doesn't support native shadow DOM. This will result in runtime errors.
If you want to use Native
you can load the webcomponents polyfills and enable shadow DOM like shown in Global Polymer settings.