Skip to content

$http success/error methods deprecated? Removed from v1.6 #8

Open
@tstepinski

Description

@tstepinski

http://stackoverflow.com/questions/35329384/why-are-angular-http-success-error-methods-deprecated-removed-from-v1-6

I'm still learning anularjs. I am grateful for your course. Your version is no longer official because in newer versions of angularjs. .succes is no longer available. Now You need to use .then to work.
// Simple GET request example:
$http({
method: 'GET',
url: '/someUrl'
}).then(function successCallback(response) {
// this callback will be called asynchronously
// when the response is available
}, function errorCallback(response) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions