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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -