Skip to content

Injectable

Registers this class as a Service (defaults to Singleton).

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.

"singleton"

ClassDecorator

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.

"instanced"

ClassDecorator