diff --git a/angucomplete-alt.js b/angucomplete-alt.js index c188bd4c..f9fdf83d 100644 --- a/angucomplete-alt.js +++ b/angucomplete-alt.js @@ -481,8 +481,8 @@ params.timeout = httpCanceller.promise; httpCallInProgress = true; $http.get(url, params) - .success(httpSuccessCallbackGen(str)) - .error(httpErrorCallback) + .then(httpSuccessCallbackGen(str)) + .catch(httpErrorCallback) .finally(function(){httpCallInProgress=false;}); }