-
Notifications
You must be signed in to change notification settings - Fork 839
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
Cancel a request #1377
Comments
Here's the way I've done it: let canceler = $q.defer()
Restangular.all('users').withHttpConfig({timeout: canceler.promise}).get()
canceler.resolve() // cancels the request This is a little counterintuitive, so let me explain.
Resolving the promise ( |
This was referenced Jun 17, 2016
Really great ! It works well, thank you for your solution :) |
bostrom
added a commit
that referenced
this issue
Dec 30, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To avoid duplication of requests (double click), I would be able to stop a running query. I do not see how. Can you help me please ?
The text was updated successfully, but these errors were encountered: