Properties:
Name | Type | Description |
---|---|---|
injectable |
function | |
autoInject |
function | |
resolve |
function |
- Source:
Methods
(static) autoinjectable(…services) → {decoratorCallback}
Automatic injection decorator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
services |
function |
<repeatable> |
The injectable classes the target class depends on. |
- Source:
Returns:
- The autoInjection function for the target class.
- Type
- decoratorCallback
(static) injectable(…services) → {decoratorCallback}
Dependency injection decorator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
services |
function |
<repeatable> |
The injectable classes the target class depends on. |
- Source:
Returns:
- The registration function for the target class.
- Type
- decoratorCallback
(static) resolve(target) → {Object}
Inversion-of-control resolver.
Parameters:
Name | Type | Description |
---|---|---|
target |
function | The class of the service to be resolved. |
- Source:
Returns:
- An instance of the target class.
- Type
- Object