File

src/app/@core/services/api/api-config-reader.service.ts

Index

Properties
Methods

Constructor

constructor(httpClient: HttpClient)
Parameters :
Name Type Optional
httpClient HttpClient no

Methods

getConfig
getConfig()
Returns : any

Properties

ngxApiConfig
ngxApiConfig: any
Type : any
import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {loadJSON} from '../../utils/load-sync';

@Injectable()
export class ApiConfigReaderService {
  ngxApiConfig: any;

  constructor(private httpClient: HttpClient) {
    this.ngxApiConfig = loadJSON('./assets/config/api/api-config.json');
  }

  getConfig() {
    return this.ngxApiConfig;
  }
}

results matching ""

    No results matching ""