Load external file settings

1

I'm developing an Angular application that will connect to external services. However I have no guarantee that the service paths to which this application bind remain the same and as such my goal was to have an external configuration file with this information so that I do not have to recompile and redeploy the application whenever the address changes.

With the Spring Framework in Java resorting to .properties files would do something like

public class RemoteService{
    @Value("${removeservice.address}")
    private String address;

    // Resto das coisas
}

How could I have the same behavior in the Angular?

    
asked by anonymous 17.05.2018 / 16:30

0 answers