title: AngularJS support multiple environments
body: <p>What is the conventional way to support multiple environments(develop, staging, production, ci) in an AngularJS application?</p>
  
  <p>For a more concrete example, how would one go about provisioning(probably requires an additional tool) a server endpoint in a config somewhere and then read that server endpoint in for use elsewhere, such as calls like <code>$http.get(server_endpoint+'/rest/api/route'</code>?</p>