Skip to content

Zone.JS integration POC #3

Open

Description

@saskodh

Background

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

  1. self-assigned this
    on Jul 4, 2016
  2. added a commit that references this issue on Jul 5, 2016
  3. added 5 commits that reference this issue on Aug 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions