title: How to read Java property file in AngularJS?
body: <p>Is there any way to read a properties file from angularjs which resides outside the web server? </p>
  
  <p>like in java the property file deployed out of the project but we can read those file in our project as filter.properties in this way any solution is there in angularJS.</p>
  
  <p>I tried like this but getting undefined.</p>
  
  <p><strong>filter.properties:</strong></p>
  
  <pre><code>key1=value1 
  key2=value2
  </code></pre>
  
  <p><strong>sampleController.js</strong></p>
  
  <pre><code>var app = angular.module('sampleApp', []);
      app.controller('sampleController', function($scope, $http) {
      $http.get('filter.properties').then(function (response) {
          console.log('a is ', JSON.stringify(response.data.key1));
      });
  });
  </code></pre>