Decorator that marks a constructor parameter as a target for Dependency Injection (DI).
Any injected provider must be visible within the module scope (loosely speaking, the containing module) of the class it is being injected into. This can be done by:
@Global()
decoratorCan be types (class names), strings or symbols. This depends on how the
provider with which it is associated was defined. Providers defined with the
@Injectable()
decorator use the class name. Custom Providers may use strings
or symbols as the injection token.
Decorator that marks a constructor parameter as a target for Dependency Injection (DI).
Any injected provider must be visible within the module scope (loosely speaking, the containing module) of the class it is being injected into. This can be done by:
@Global()
decoratorCan be types (class names), strings or symbols. This depends on how the
provider with which it is associated was defined. Providers defined with the
@Injectable()
decorator use the class name. Custom Providers may use strings
or symbols as the injection token.
Decorator that marks a constructor parameter as a target for Dependency Injection (DI).
Any injected provider must be visible within the module scope (loosely speaking, the containing module) of the class it is being injected into. This can be done by:
@Global()
decoratorCan be types (class names), strings or symbols. This depends on how the
provider with which it is associated was defined. Providers defined with the
@Injectable()
decorator use the class name. Custom Providers may use strings
or symbols as the injection token.
Function that returns a new decorator that applies all decorators provided by param
Useful to build new decorators (or a decorator factory) encapsulating multiple decorators related with the same feature
Extend a class to be serializable, add 2 methods serialize() and toJSON()
Function that returns a new decorator that applies all decorators provided by param
Useful to build new decorators (or a decorator factory) encapsulating multiple decorators related with the same feature
Function that returns a new decorator that applies all decorators provided by param
Useful to build new decorators (or a decorator factory) encapsulating multiple decorators related with the same feature
WRTIE DEF
A class constructor
The property containing the child
Get relationship metadata
A class constructor
The property that was set as relationship
The entity manager (only required if the relationship target type is set as a string)
The instance of the entity (only required if the type of the relationship is dynamic)
The class constructor of an entity
The model to hydrate
The data to merge into the entity
The prefixes to excludes (if the source contains key ith prefix)
Set relationship metadata
An instance of an object
The property to set as relationship
The metadata defining the relationship
The signature of the function used to determine the type of a relationship target