Function: Config()
Config(
path?,defaultValue?): (target,propertyKey) =>void
Defined in: core/src/decorators/ObjectDecorators.ts:61
Apply this to a property to have a configuration variable be injected at instantiation. If no path is given, the global configuration object is injected.
Parameters
path?
string
The path to the configuration variable to inject.
defaultValue?
any = undefined
Set to the desired default value. If undefined is specified then an error is thrown if
no config variable is found at the given path.
Returns
(target, propertyKey) => void