src/app/@core/services/api/api-config-reader.service.ts
Properties |
Methods |
constructor(httpClient: HttpClient)
|
||||||
Parameters :
|
getConfig |
getConfig()
|
Returns :
any
|
ngxApiConfig |
ngxApiConfig:
|
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;
}
}