Open ntraykov opened 5 years ago
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
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.