File

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

Description

Service to fetch config details.

Properties

appConfig
appConfig: any

property containing app config

constants
constants: any

Constants to configure the app

contentCategoryConfig
contentCategoryConfig: any

Constants for content primary categories

dropDownConfig
dropDownConfig: any

property containing drop down config

editorConfig
editorConfig: any

property containing editor config

offlineConfig
offlineConfig: any

property containing offline application config

rolesConfig
rolesConfig: any

property containing roles config

telemetryLabels
telemetryLabels: any

property containing telemetry config

urlConFig
urlConFig: any

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 offlineConfig from './offline.config.json';
import * as constants from './constants.json';
import * as telemetryLabels from './telemetry-label.config.json';
import * as contentCategoryConfig from './contentcategory.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);
  /**
  * property containing offline application config
  *
  */
  offlineConfig = (<any>offlineConfig.default);

  /**
   * Constants to configure the app
   */
  constants = (<any>constants.default);

  /**
  * property containing telemetry config
  *
  */
  telemetryLabels = (<any>telemetryLabels.default);
  /**
   * Constants for content primary categories
   */
  contentCategoryConfig = (<any>contentCategoryConfig.default);
}

results matching ""

    No results matching ""