DaffSingletonInjectionToken

A injection token to hold and provide a singleton service.

Properties

Name Type Description
token InjectionToken<T> The injection token. Its default value is an empty array.
provider <R extends T = T>(klass: Type<R>) => ExistingProvider A helper function to provide the service class to the token.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.