@logo-software/configurator
v11.0.2
Published
This library provides an easy way to load one or more JSON files with configuration values or make one or more HTTP GET calls to an API endpoint that returns those values.
Downloads
20
Readme
Configurator Module
The environment.ts files in an Angular application technically work for setting configuration values in an app, but those are buildtime configuration values. This library provides an easy way to load one or more JSON files with configuration values or make one or more HTTP GET calls to an API endpoint that returns those values. The config objects that are returned from the call(s) will be combined into a single configuration object.
Installation
All public npm packages of Logo Software is at https://www.npmjs.com/~logofe. To install Configurator Module:
$ npm set registry https://registry.npmjs.org/
$ npm install @logo-software/configurator -s
Just import it to your project of @NgModule
import section.
import {ConfiguratorModule} from '@logo-software/configurator';
@NgModule({
imports: [
CommonModule,
ConfiguratorModule.forRoot({
configUrl: 'your/path/to/config.json',
}),
],
})
export class AppModule {
}
For API details, please visit http://design.logo.com.tr/#/docs/components/components-overview