In Angular (Type Script) there are many config files. Which is the right one to save a global setting?
For example, when I am calling API from local then my rootUrl
is localhost:42000
but when I switch on production it should be http:www.someting.com
.
I want to save this rootUrl
in some global place so if I switch on production then I only have to change in this rootUrl
.
Please suggest where should I save these global settings, same as web.config in Asp.Net.