In my application, I have created appMessages.ts, which holds a variable like:
export const appMessages = {
my_url: 'http://localhost:8080/myApp',
}
I`m basically using this to make REST calls. In real production environment, The variable value keeps changing, and needs to be configurable. If I use appMessages.ts, and create a production bundle, using
ng build --prod
Problem is, appMessages.ts is not configurable anymore. Is there an Angular way to create a configurable property file, which can be configured dynamically with 'my_url' depending on the current development environment?
Can some kind of property file, which can be read after the product has been deployed?