zencode-configuration-manager
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i zencode-configuration-manager

    Weekly Downloads

    1

    Version

    0.0.3

    License

    none

    Unpacked Size

    132 kB

    Total Files

    29

    Last publish

    Collaborators