Load external file settings

Asked

Viewed 15 times

1

I’m developing an Angular application that will connect to external services. However I have no guarantee that the paths of the services this application connects to remain the same and as such my goal was to have an external settings file with this information so that I would not have to recompile and reimplant the application whenever the address changes.

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

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

    // Resto das coisas
}

How could I have the same behavior at Angular?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.