ConfigService
injectable
Load and provide configuration for hole apllication while application is inizialized.
Methods
Section titled “Methods”extendConfig
Section titled “extendConfig”extendConfig(configs: YuvConfig[]): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| configs | YuvConfig[] |
extendTranslations
Section titled “extendTranslations”extendTranslations(translations: any, lang: ): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| translations | any | |
| lang | “ |
get(configKey: string): anyArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| configKey | string |
getApiBase
Section titled “getApiBase”getApiBase(api: string, origin: ): stringArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| api | string | |
| origin | “ |
getClientLocales
Section titled “getClientLocales”Getter for the available client locales
getClientLocales(): YuvConfigLanguages[]getDefaultClientLocale
Section titled “getDefaultClientLocale”Get the default client locale
getDefaultClientLocale(): anyGLOBAL_MAIN_CONFIG
Section titled “GLOBAL_MAIN_CONFIG”GLOBAL_MAIN_CONFIG(prefix: "system" | "admin" | string): stringArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| prefix | "system" | "admin" | string |
GLOBAL_MAIN_CONFIG_LANG
Section titled “GLOBAL_MAIN_CONFIG_LANG”GLOBAL_MAIN_CONFIG_LANG(iso: string, prefix: "system" | "admin" | string): stringArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| iso | string | |
| prefix | "system" | "admin" | string |
GLOBAL_RESOURCES_PATH
Section titled “GLOBAL_RESOURCES_PATH”GLOBAL_RESOURCES_PATH(section: string, prefix: "system" | "admin" | string): stringArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| section | string | |
| prefix | "system" | "admin" | string |
PARSER
Section titled “PARSER”PARSER(c: any): anyArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| c | any |