Don’t know if it’s the right way to do it, but I use a static
for that purpose. In a separate file I’ve got something like:
export class Resources {
static get Constants():any {
return {
API: {
MY_URL: 'http://....'
}
}
}
}
which I could then use like:
Resources.Constants.API.MY_URL;