B
B
beta-it2017-04-18 12:33:15
Angular
beta-it, 2017-04-18 12:33:15

Base URL for requests in Angular 2?

Actually, how can you set for all POST, GET, PUT requests to the server, so that in case something could be changed in one place!?
Of course, there is an idea - to create a class with parameters, but perhaps for such cases, something should be provided by default?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Ch, 2017-04-18
@beta-it

Use environment. More about the environment https://www.youtube.com/watch?v=FfDAGiDvg_I&t=281s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question