Inject Decorator Factory
Prefer using Autowired instead of this.
Automaticaly wire up a dependency into a class property. Any Service, Entity, or Factory can be injected.
When injecting a Factory, args can be provided to pass into the Factory.
args
class MyClass { @Entity("Logger") loggger!: Logger;}
Example using Factory
class MyClass { @Entity("Logger", { args: ["MyClass"] }) logger!: Logger;}
provide the name
Optional
optional params
Generated using TypeDoc
Inject Decorator Factory
Prefer using Autowired instead of this.
Automaticaly wire up a dependency into a class property. Any Service, Entity, or Factory can be injected.
When injecting a Factory,
argscan be provided to pass into the Factory.Example
Example
Example using Factory
Returns