I have an angular2 application that works fine in Chrome and Firefox, but in Safari I get this error:
TypeError el.createShadowRoot is not a function
And similarly in Edge:
The object does not support the property or method 'createShadowRoot' at BrowserDomAdapter.prototype.createShadowRoot ( http: // localhost: 5000 / lib / angular2 / bundles / angular2.dev.js: 22893: 7 )
More from the edge:
Am I missing any gasket or polymer?
createShadowRoot()should be called only when used ViewEncapsulation.Native.
createShadowRoot()
ViewEncapsulation.Native
ViewEncapsulation.Emulated , ( , TS toolchain, Dart)
ViewEncapsulation.Emulated
, Firefox el.createShadowRoot is not a function
el.createShadowRoot is not a function
, createShawdowRoot attachShadow() https://developer.mozilla.org/en-US/docs/Web/API/Element/createShadowRoot
Angular, ViewEncapsulation.Native, , ViewEncapsulation.ShadowDom, , https://angular.io/api/core/Component#encapsulation
.
, createShawdowRoot, Firefox.
Source: https://habr.com/ru/post/1624557/More articles:Как сделать дедупликацию на записях от AWS Kinesis Firehose до Redshift? - duplicatesАлгоритм нахождения самых узких интервалов, m из которых будет охватывать набор чисел - javaHow to convert a loop that sometimes adds a converted value to a Java 8 / lambda thread? - javaSwift Selectors and Closures Discussion - closuresCan Akka.NET and Original Akka communicate using Remoting? - akkainvalid title from script index.py Bad title - pythonStatus bar not showing in iOS app - iosЧто значит "+!!" делать в JavaScript? - javascriptAdd delete icon on image in HTML5 and Fabric js canvas - javascriptHow to set time in call slider in angular js? - javascriptAll Articles