title: angularjs read from properties file
body: <p>In angularJS how can I read a value from a properties file?  </p>
  
  <pre><code>connection.properties:  
  
  url="http://localhost:8080"  
  user= "me"  
  get= "GET"  
  post= "POST"
  </code></pre>
  
  <p>app.js:  </p>
  
  <pre><code>var app = angular.module('testing',[]);  
  app.controller('testCtrl',function($scope,$http) {    
       $http({    
          url: connection.properties.url  ,
          method: connection.properties.get,  
          params: {user: connection.properties.user})        
       });
  });
  </code></pre>