I am working with an angular 2 project with typescript and webpack. At the development time I should use local APIs or test APIs. But when in production I should use the real APIs. So the API URL will changed.
APIs are used in many service files like product service etc.
I want to write all of my API URLs in a single file so that I can easily change the URLs when environment will changed.
How can I do it?