V
V
Vyacheslav2019-02-19 12:31:10
Angular
Vyacheslav, 2019-02-19 12:31:10

Where is the best place to store the server url in an Angular project?

Beginner's question: where is the best place to store a variable from the server url, so as not to write it in each component / service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
spnq, 2019-02-19
@matu1

Take out the constants in a separate file and import from there where necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question