Well, I've made this in the topmost folder side by side with main.ts and index.html:
export class Configuration {
public routeToApi:string = "http://localhost:61995/";
}
It has its own file and what you see is the entirety of the file. I loop it in as a provider in my outermost module wrapping everything else and that allows me to pull it in at the constructor line of a service. Is this ghetto?
No comments:
Post a Comment