This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Finalize #262
Comments
Yes, you can use |
How? |
Heres an example: new Vue({
ready: function() {
// GET request
this.$http({url: '/someUrl', method: 'GET'}).then(function (response) {
// success callback
}, function (response) {
// error callback
}).finally(function () {
// finally callback
});
}
}) |
Thanks |
I want to have response object in finally callback. I am getting undefined |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to add a method that will always be called when success or error? Like Exceptions have finalize.
I want to stop the button loading spinner in any case.
The text was updated successfully, but these errors were encountered: