This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 408
set custom global zone #995
Comments
@matthewjh , no, it is not supported. |
@JiaLiPassion: Damn, that is a shame. |
You can always just monkey patch it. const runTask = Zone.prototype.runTask;
Zone.prototype.runTask = function(task, applyThis, applyArgs) {
// Run your own handlers.
return runTask.call(this, task, applyThis, applyArgs);
}; |
JiaLiPassion
added a commit
to JiaLiPassion/zone.js
that referenced
this issue
Feb 23, 2018
…lib to configure root zone
JiaLiPassion
added a commit
to JiaLiPassion/zone.js
that referenced
this issue
Feb 23, 2018
…lib to configure root zone
JiaLiPassion
added a commit
to JiaLiPassion/zone.js
that referenced
this issue
Feb 23, 2018
…lib to configure root zone
Will close this for now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
In my use case, I need to have a custom global zone. I want my own zone's hooks to be run, even when not using zone.run. Basically I need to replace the default Zone.current with my own zone, and use that as the "default" zone.
Is there any way to do this?
Thanks,
Matt
The text was updated successfully, but these errors were encountered: