DestroyableInjector
interface
stable
An Injector that the owner can destroy and trigger the DestroyRef.destroy hooks.
destroy
void@returns
voidget
4 overloadsRetrieves an instance from the injector based on the provided token.
@paramnotFoundValue
undefined@returns
TThe instance from the injector if defined, otherwise the notFoundValue.
Retrieves an instance from the injector based on the provided token.
@paramnotFoundValue
null | undefined@returns
T | nullThe instance from the injector if defined, otherwise the notFoundValue.
Retrieves an instance from the injector based on the provided token.
@paramnotFoundValue
T | undefined@returns
TThe instance from the injector if defined, otherwise the notFoundValue.
Jump to details