Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tstepinski opened this issue Apr 8, 2017 · 2 comments
Open

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

tstepinski opened this issue Apr 8, 2017 · 2 comments

Comments

@tstepinski
Copy link

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.
});

@yoren
Copy link
Member

yoren commented Apr 9, 2017

hey @tstepinski Thank you so much for the update! Can you just fork this project and send me a pull request? It would be great that we'll have you as a contributor.

@tstepinski
Copy link
Author

@yoren Hi tomorrow i will try to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants