You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
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.
You can always just monkey patch it.
Something like this for runTask, and similar wrappers for the rest as needed:
construnTask=Zone.prototype.runTask;Zone.prototype.runTask=function(task,applyThis,applyArgs){// Run your own handlers.returnrunTask.call(this,task,applyThis,applyArgs);};
Activity
JiaLiPassion commentedon Jan 19, 2018
@matthewjh , no, it is not supported.
there was the same requirement before, #513. you can check the answer there.
matthewjh commentedon Jan 19, 2018
@JiaLiPassion: Damn, that is a shame.
mleibman commentedon Jan 19, 2018
You can always just monkey patch it.
Something like this for
runTask, and similar wrappers for the rest as needed:feat(core): fix angular#1024, angular#513, angular#995, add a helper …
feat(core): fix angular#1024, angular#513, angular#995, add a helper …
feat(core): fix angular#1024, angular#513, angular#995, add a helper …
JiaLiPassion commentedon Jul 21, 2019
Will close this for now.