title: setup $http url from .properties file in angularjs
body: <p>I have some services in my App.</p>
  
  <pre><code>loginApp.factory('urlService', function() {
  return {
      baseUrl : function(){
          return 'http://localhost:8080/myAppName'
          }
      }
  });
  </code></pre>
  
  <p>consume this service by one another services.</p>
  
  <pre><code>loginApp.factory('loginServices', function($http,urlService) {
      return {
          loginAuth : function(aut,resp){
              return $http({
                  method: 'GET',
                  url: urlService.baseUrl()+'auth', 
              }).success(function(result) {
                     return result;
              });
          }
      }
  });
  </code></pre>
  
  <p>I want configure <strong><code>http://localhost:8080/myAppName</code></strong> from a .properties file which is present on application root.</p>