Revision 56405
Added by Michele Artini almost 5 years ago
datasources.js | ||
---|---|---|
43 | 43 |
}); |
44 | 44 |
|
45 | 45 |
orgsModule.controller('showCtrl', function ($scope, $http, $routeParams) { |
46 |
|
|
46 |
|
|
47 | 47 |
$scope.org = {}; |
48 |
$scope.vocabularies = {}; |
|
48 | 49 |
|
49 |
$http.get('/api/organizations/get?id=' + $routeParams.id).then(function successCallback(res) { |
|
50 |
$scope.org = res.data; |
|
50 |
$http.get('/api/vocabularies').then(function successCallback(res) { |
|
51 |
$scope.vocabularies = res.data; |
|
52 |
|
|
53 |
$http.get('/api/organizations/get?id=' + $routeParams.id).then(function successCallback(res) { |
|
54 |
$scope.org = res.data; |
|
55 |
}, function errorCallback(res) { |
|
56 |
alert("Error"); |
|
57 |
}); |
|
51 | 58 |
}, function errorCallback(res) { |
52 | 59 |
alert("Error"); |
53 | 60 |
}); |
61 |
|
|
54 | 62 |
}); |
Also available in: Unified diff