export class MainConfig {
prodUrl: string;
constructor() {
this.prodUrl = 'https://site.api';
}
}
import { MainConfig } from '../main.config';
export class ApiService {
constructor(private mainConfig: MainConfig) { }
res = this.myMethod(this.mainConfig.prodUrl){....}
}