File

src/app/modules/shared/services/config/config.service.ts

Description

Service to fetch config details.

Index

Properties

Properties

appConfig
Default value : (<any>appConfig['default'])

property containing app config

constants
Default value : (<any>constants['default'])

Constants to configure the app

dropDownConfig
Default value : (<any>dropDownConfig['default'])

property containing drop down config

editorConfig
Default value : (<any>editorConfig['default'])

property containing editor config

offlineConfig
Default value : (<any>offlineConfig['default'])

property containing offline application config

rolesConfig
Default value : (<any>rolesConfig['default'])

property containing roles config

urlConFig
Default value : (<any>urlConfig['default'])

property containing url config

import { Injectable } from '@angular/core';
import * as urlConfig from './url.config.json';
import * as dropDownConfig from './dropdown.config.json';
import * as rolesConfig from './roles.config.json';
import * as appConfig from './app.config.json';
import * as editorConfig from './editor.config.json';
import * as constants from './constants.json';
import * as offlineConfig from './offline.config.json';

/**
 * Service to fetch config details.
 *
 */
@Injectable()
export class ConfigService {
  /**
   * property containing url config
   *
   */
  urlConFig = (<any>urlConfig['default']);
  /**
   * property containing drop down config
   *
   */
  dropDownConfig = (<any>dropDownConfig['default']);
  /**
   * property containing roles config
   *
   */
  rolesConfig = (<any>rolesConfig['default']);
  /**
   * property containing app config
   *
   */
  appConfig = (<any>appConfig['default']);
  /**
  * property containing editor config
  *
  */
  editorConfig = (<any>editorConfig['default']);

  /**
   * Constants to configure the app
   */
  constants = (<any>constants['default']);
  /**
  * property containing offline application config
  *
  */
  offlineConfig = (<any>offlineConfig['default']);
}

results matching ""

    No results matching ""