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

Angular: Remove all references to $http success/error in favor of $http.then() #13127

Closed
mtho11 opened this issue Dec 12, 2016 · 3 comments
Closed
Assignees

Comments

@mtho11
Copy link
Contributor

mtho11 commented Dec 12, 2016

Starting with Angular version 1.6 the (deprecated) $http .success and .error has been removed and will throw errors.

Angular Github PR

This means we need search and replace any instances of this and replace with promise syntax:
$http.then(function(){ }) instead.
Also, need to check javascript tests. This needs to be done before moving to Angular 1.6.

@miq-bot add_label ui, technical debt

@mtho11
Copy link
Contributor Author

mtho11 commented Dec 12, 2016

Just FYI, from style guide - Handling Exceptions with Promises - https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#style-y082

@himdel
Copy link
Contributor

himdel commented Jan 9, 2017

@mtho11 was this closed by mistake or did you want to move this to manageiq-ui-classic?

@AparnaKarve is working on it in ManageIQ/manageiq-ui-classic#13 but it's not really done yet..

@mtho11
Copy link
Contributor Author

mtho11 commented Jan 9, 2017

@himdel it seems I closed it without creating the corresponding issue. Its added now.

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

No branches or pull requests

4 participants