Fix updating nodes: Use new $http API.
This commit is contained in:
parent
351e95c818
commit
5754250c0d
|
@ -14,8 +14,8 @@ angular.module('ffffng')
|
||||||
$scope.onSubmitToken = function (token) {
|
$scope.onSubmitToken = function (token) {
|
||||||
$scope.token = token;
|
$scope.token = token;
|
||||||
return NodeService.getNode(token)
|
return NodeService.getNode(token)
|
||||||
.success(function (node) {
|
.then(function (response) {
|
||||||
$scope.node = node;
|
$scope.node = response.data;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue