DaffConfigInjectionToken

A injection token to hold and provide a config value.

Properties

Name Type Description
token InjectionToken<T> The injection token. Its default value is the default config passed during token creation.
provider <R extends T = T>(config: Partial<R> | InjectionToken<Partial<R>>) => FactoryProvider A helper function to provide a value to the token. It will shallow merge the passed config with the default config with the passed config keys taking precedence. An injection token containing a config may also be passed.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.