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