UNPKG

eslint-plugin-angular

Version:
17 lines (14 loc) 445 B
// example - valid: true $http.get('api/data').then(function onSuccess() { // ... }, function onReject() { // ... }); // example - valid: false, errorMessage: "$http success is deprecated. Use then instead" $http.get('api/data').success(function onSuccess() { // ... }); // example - valid: false, errorMessage: "$http error is deprecated. Use then or catch instead" $http.get('api/data').error(function onReject() { // ... });