AngularJS 2 and web components, emulation and policies

AngularJS 2 has the ability to use the native shadow DOM, which is part of the web components during installation encapsulation: ViewEncapsulation.Native, as I understand it ...

But this gives a few questions:

  • When encapsulation: ViewEncapsulation.Nativewill it return to ViewEncapsulation.Emulatedwhen the browser does not support the Shadow DOM?
  • Can polyfill web components be used if the browser does not support the Shadow DOM and is installed encapsulation: ViewEncapsulation.Native?
+4
source share
1 answer

ViewEncapsulation.Native ViewEncapsulation.Emulated, DOM. .

Native, - DOM, Global Polymer .

+6

Source: https://habr.com/ru/post/1648101/


All Articles