angularjs Lesen von properties-Datei

In angularJS wie kann ich Lesen einen Wert aus einer properties-Datei?

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})        
     });
});
  • - Verbindung.properties ist eine Datei, die Leben auf meinem server.
InformationsquelleAutor Woot4Moo | 2013-09-30
Schreibe einen Kommentar