provideInjectable
provideInjectable<
T>(target):FactoryProvider<T,DepsMap>
Defined in: packages/di-craft/src/core/annotation/annotation.ts:91
Creates a factory provider from a class marked with @Injectable.
The returned provider is a normal di-craft factory provider, so scopes,
optional dependencies, disposal hooks, overrides, and cycle detection behave
the same as with provideFactory.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”target
Section titled “target”InjectableClass<T>
Returns
Section titled “Returns”FactoryProvider<T, DepsMap>