import { Inject , Injectable } from '@angular/core' ; import { HttpClient , HttpResponse } from '@angular/common/http' ; import { Observable } from 'rxjs' ; import { map } from 'rxjs/operators' ; import { catchError } from 'rxjs/operators' ; @ Injectable ( ) export class AppConfig { private config : Object = null ; private env : Object = null ; constructor ( private http ) { } /**
     * Use to get the data found in the second file (config file)
     */ public getConfig ( key ) { return this . config [ key ] ; } /**
     * Use to get the data found in the first file (env file)
     */ public getEnv ( key ) { return this . env [ key ] ; } /**
     * This method:
     *   a) Loads "env.json" to get the current working environment (e.g.: 'production', 'development')
     *   b) Loads "config.[env].json" to get all env's variables (e.g.: 'config.development.json')
     */ public load ( ) { return { } ; } }