Injectable
Registers this class as a Service (defaults to Singleton).
Call Signature
Section titled “Call Signature”Injectable(
scope):ClassDecorator
Defined in: src/decorators/di.ts:14
Registers this class as a Singleton service. A single instance will be created and shared across the process.
Parameters
Section titled “Parameters”"singleton"
Returns
Section titled “Returns”ClassDecorator
Call Signature
Section titled “Call Signature”Injectable(
scope):ClassDecorator
Defined in: src/decorators/di.ts:20
Registers this class as an Instanced (Transient) service. A new instance will be created every time dependency is resolved.
Parameters
Section titled “Parameters”"instanced"
Returns
Section titled “Returns”ClassDecorator