import { Inject , Injectable } from '@angular/core' ; import { ENV_CONFIG } from '../../app.config' ; import { EnvConfig } from '../../../../../tools/config/app.config' ; export interface IEnvironmentService { readonly config : EnvConfig ; } @ Injectable ( ) export class EnvironmentService implements IEnvironmentService { constructor ( @ Inject ( ENV_CONFIG ) private _config ) { } get config ( ) : EnvConfig { return this . _config ; } }