In angularJS, how can I read a value from a properties file?
connection.properties: url="http://localhost:8080" user= "me" get= "GET" post= "POST"
app.js:
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}) }); });
javascript angularjs properties
Woot4moo
source share