issues
search
saskodh
/
framework
Lightweight web framework for NodeJS inspired by Spring framework
26
stars
5
forks
source link
Add support for declaring component's scope
#36
Open
saskodh
opened
8 years ago
saskodh
commented
8 years ago
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)
Task