Commit 3824317a by Thomas Bosch

fix

parent e40f8b39
......@@ -9,8 +9,7 @@ angular.module('registry')
// Get details from applications
for (var i = 0; i < applications.length; i++) {
var app = applications[i];
ApplicationInfo.setApp(app);
ApplicationInfo.getInfo();
ApplicationInfo.getInfo(app);
}
});
......
......@@ -10,13 +10,9 @@ angular.module('registry.services', ['ngResource'])
}])
.service('ApplicationInfo', ['$http',
function($http){
var _app;
this.setApp = function(app) {
_app = app;
}
this.getInfo = function() {
return $http.get(_app.url + '/info').success(function(response) {
_app.version = response.version;
this.getInfo = function(app) {
return $http.get(app.url + '/info').success(function(response) {
app.version = response.version;
});
}
}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment