How should I manage different environment settings in AngularJS projects? For example, I'd like to configure things like this different depending on whether I'm in development, test, staging or production:
- Redirect URLs for single sign on
- URLs for other services (especially those that support CORS or JSONP i.e. not on the same domain)
On the server side, in Django I'd use settings and local_settings or in Rails, I'd use different environment files like production.rb or development.rb. What's the best practice in AngularJS?