title: How to set up AngularJs SPA Urls to be read out of web.config
body: <p>I have AngularJS controllers and services that is referring a part of code that is hosted in server 1. So, to get or post data I have referring the </p>
  
  <pre><code>var getUsers = $resource('http://localhost:2211/projectname/users/getusers', 
  {
      id: viewModel.user.Id
  }); 
  
  getUsers.get(function (result: users.usersResource)
  {
     if(result != null)
     {
         $scope.viewModel.firstName = result.firstName; 
     }
  }
  </code></pre>
  
  <p>My question is how do I set up web.config file to hold the urls referred above
  and call it from my controllers or service page instead of hard coding the urls every time I am doing post or get. </p>
  
  <p>Please help.</p>