title: How should I manage configuration for different environments in AngularJS
body: <p>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:</p>
  
  <ul>
  <li>Redirect URLs for single sign on</li>
  <li>URLs for other services (especially those that support CORS or JSONP i.e. not on the same domain)</li>
  </ul>
  
  <p>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?</p>