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
Zones are a powerful concept that was invented for the first time a few years ago. Until then it went from just a theory into practice and now it's used in Angular2 change detection. This implementation is supported by the Angular team.
What are zones and why we might need them? A Zone is an execution context that persists across async tasks. You can think of it as thread-local storage for JavaScript VMs.
That means if we run each request in a separate zone we can store part of the injector there and support injection of request scoped components. Furthermore zones add improvements to the error handling and profiling. Having this 'thread-local' storage will enable us to implement declarative transaction management.
Goal
Integrate Zone.JS in the project and check if it works as expected.
Task
add zone.js as dependency
run each request in a separate zone
add support for simple @ThreadLocal storage in components
Activity
[#3] Fixed an issue with the zone.js typings import
[#3] Zone.JS integration POC
[#3] Zone.JS integration POC
[#3] Zone.JS integration POC [Refactoring]
[#3] Zone.JS integration POC
[no-issue] Added example usage of @ThreadLocal and RequestContextHolder