You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
BREAKING CHANGE:
`$http`'s deprecated callback methods `success()` and `error()` have been removed. Use the standard
`then()`/`catch()` promise methods instead.
(Note that the method signatures are different.)
Before:
```js
$http(...).success(function (data, status, headers, config) { ... }));
$http(...).error(function (data, status, headers, config) { ... }));
```
After:
```js
$http(...).then(function (response) {
var data = response.data;
var status = response.status;
var statusText = response.statusText;
var headers = response.headers;
var config = response.config;
...
}));
$http(...).catch(function (response) {
var data = response.data;
var status = response.status;
var statusText = response.statusText;
var headers = response.headers;
var config = response.config;
...
}));
```
0 commit comments