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

Freature Suggestion: Add events #211

Open
ntraykov opened this issue Jun 25, 2019 · 1 comment
Open

Freature Suggestion: Add events #211

ntraykov opened this issue Jun 25, 2019 · 1 comment

Comments

@ntraykov
Copy link

It would be really nice if I could listen to events for start and done. In my particular case, I have a button that when clicked, I start an ajax request. I want to disable the button until the ajax request is finished. I wrapped the ngprogress object in my own object, so I managed to create events by myself, but I think this might be useful in general.

@Christian1998
Copy link

Christian1998 commented Jul 21, 2019

Why dont use jQuery's Ajaxfunctions? Should work, but not 100% sure 👍
Modified example from https://api.jquery.com/jquery.ajax/:
https://pastebin.com/f9HPxBXc

edit: moved to pastebin because github wasnt parsing my markdown

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