Skip to content

Add support for declaring component's scope #36

Description

@saskodh

Task

  • implement @scope decorator
  • add support for the following scopes:
    • singleton (default)
    • prototype - new instance is created each time the component is referenced
    • request - new instance is created for each request (after zone.js is integrated)
    • session - new instance is created for each different user session (can be complicated to implement, maybe for later)
    • custom scope - enable devs to implement their own custom scopes (check the complexity for the priority)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions