A injection token to hold and provide a config value.
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>) => ValueProvider | 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. |