angular - Angular2 Exception: TypeError el.createShadowRoot is not a function (Safari/Edge) -


i have angular2 app works great in chrome , firefox, in safari error:

typeerror el.createshadowroot not function

and in edge:

object doesn't support property or method 'createshadowroot' @ browserdomadapter.prototype.createshadowroot (http://localhost:5000/lib/angular2/bundles/angular2.dev.js:22893:7)

more edge: enter image description here

is there shim or polymer missing?

createshadowroot() should called if use viewencapsulation.native.

either use viewencapsulation.emulated or ensure polyfills loaded (i can't guide how, because don't use ts toolchain, dart)


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -