config: { $defaultOptions: {}; $loaded: {}; $loading: {}; $modes: {}; dynamicModules: any; reportError: ((msg,
data) => void); version: "1.37.1"; warn: ((message,
...args) => void); $require(moduleName): any; all(): ConfigOptions; defineOptions(obj,
path,
options): AppConfig; get<K>(key): ConfigOptions[K]; loadModule(moduleId,
onLoad): void; moduleUrl(name,
component?): string; nls(key,
defaultString,
params?): any; resetOptions(obj): void; set<K>(key,
value): void; setDefaultValue(path,
name,
value): boolean; setDefaultValues(path,
optionHash): void; setLoader(cb): void; setMessages(value,
options?): void; setModuleLoader(moduleName,
onLoad): void; setModuleUrl(name,
subst): string; } Type declaration
$defaultOptions: {}
$loaded: {}
$loading: {}
$modes: {}
dynamicModules: any
reportError: ((msg, data) => void)
- (msg, data): void
Returns void
version: "1.37.1"
warn: ((message, ...args) => void)
- (message, ...args): void
Parameters
message: any
Rest
...args: any
Returns void
$require:function
- $require(moduleName): any
Returns any
all:function
- all(): ConfigOptions
Returns ConfigOptions
defineOptions:function
- defineOptions(obj, path, options): AppConfig
Parameters
obj: any
path: string
options: {
[key: string]: any;
}
Returns AppConfig
get:function
- get<K>(key): ConfigOptions[K]
Type Parameters
K extends keyof ConfigOptions
Returns ConfigOptions[K]
- The value of the config option.
loadModule:function
- loadModule(moduleId, onLoad): void
Parameters
moduleId: string | [string, string]
onLoad: ((module) => void)
- (module): void
Returns void
Returns void
moduleUrl:function
- moduleUrl(name, component?): string
Parameters
name: string
Optional
component: string
Returns string
nls:function
- nls(key, defaultString, params?): any
Parameters
key: string
defaultString: string
Optional
params: {
[x: string]: any;
}
Returns any
resetOptions:function
- resetOptions(obj): void
Returns void
set:function
- set<K>(key, value): void
Type Parameters
K extends keyof ConfigOptions
Parameters
key: K
value: ConfigOptions[K]
Returns void
setDefaultValue:function
- setDefaultValue(path, name, value): boolean
Parameters
path: string
name: string
value: any
Returns boolean
setDefaultValues:function
- setDefaultValues(path, optionHash): void
Parameters
path: string
optionHash: {
[key: string]: any;
}
Returns void
setLoader:function
- setLoader(cb): void
Parameters
cb: ((name, callback) => void)
- (name, callback): void
Parameters
name: string
callback: ((error, module) => void)
- (error, module): void
Returns void
Returns void
Returns void
setMessages:function
- setMessages(value, options?): void
Parameters
value: any
Optional
options: {
placeholders?: "dollarSigns" | "curlyBrackets";
}
Optional
placeholders?: "dollarSigns" | "curlyBrackets"
Returns void
setModuleLoader:function
- setModuleLoader(moduleName, onLoad): void
Parameters
moduleName: any
onLoad: any
Returns void
setModuleUrl:function
- setModuleUrl(name, subst): string
Parameters
name: string
subst: string
Returns string
The key of the config option to retrieve.