小编sne*_*lax的帖子

使用@webcomponents在Firefox中使用Angular4 ViewEncapsulation.Native

根据接受的解决方案如何使我的角4代码与Firefox兼容?,我应该可以像这样使用@webcomponents:

npm install @webcomponents/webcomponentsjs
Run Code Online (Sandbox Code Playgroud)

并将以下内容添加到我的polyfills.ts:

import '@webcomponents/webcomponentsjs/webcomponents-sd-ce.js';
Run Code Online (Sandbox Code Playgroud)

但我仍然无法在我的Angular4应用程序中使用Firefox中的ViewEncapsulation.Native.救命?

web-component angular

8
推荐指数
0
解决办法
257
查看次数

标签 统计

angular ×1

web-component ×1