I would like to use zone.js in my node app.
Although I have found a post in which is described how to do this, I still get zone
is not defined error
For example. I also found an examples likt this
let zone = require('zone');
zone.run(function () {
zone.inTheZone = true;
setTimeout(function () {
console.log('in the zone: ' + !!zone.inTheZone);
}, 0);
});
Which gives the same error, but I inspected the zone
object, I noticed that it returns an object like this
{
enable: function() { .. }
}
So I guess that the zone API changed. Any help would be appreciated