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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -