Angular 4 put a global constant available to zone.js

前端 未结 2 1300
长情又很酷
长情又很酷 2021-02-06 08:48

i am using Angular (4 i think) with typescript and zone.js (0.8.4). I import zone.js via the \"polyfills.ts\" file. When I look inside the source code of zone.js, there is code

2条回答
  •  借酒劲吻你
    2021-02-06 09:09

    In my case, I have had to uncomment the following line in the polyfills file:

    (window as any).__Zone_enable_cross_context_check = true;
    

    Project Angular version: Angular 6.0.1

提交回复
热议问题