Where is the best way to put app settings?

So what is the best way to store app settings like api url and etc to be able to get it in each app corner ?

This is how the Angular peeps suggest.