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 like this:
var isDisableIECheck = _global['__Zone_disable_IE_check'] || false;
My question is, how can I set this variable in _globals ?
Thanks
In my case, I have had to uncomment the following line in the polyfills file:
Project Angular version: Angular 6.0.1
global
iswindow
object in a browser as can be seen here:so you can set the variable like this:
But you need to do that before
zone.js
is loaded. If you loadzone.js
inindex.html
, add the following: