0.0.3 • Published 3 years ago
zencode-configuration-manager v0.0.3
ConfigurationManager
For using this package declare configuration path provider for example :
export const CONFIGURATION_PATH_PROVIDER: string = `assets/config${environment.production ? '.prod' : ''}.json`;
and then import configuration module into app.module.ts file :
ConfigurationModule.forRoot(CONFIGURATION_PATH_PROVIDER)
get configuration from config file:
private readonly apiUrl = CONFIGURATION.get<string>('apiUrl');
P.S.
This library was generated with Angular CLI version 9.1.12.
0.0.3
3 years ago