I've got 30+ inputs on a single page. Each input has a callback on ng-blur (focus loss) which calls a remote API through $http AngularJS service. Each api request is running asynchronously in parallel. User may edit an input several times. Each time the ng-blur event is fired the data is sent to the server.
I also have the "next" button at the bottom of the page which user presses when he/she is done editing the inputs on a page. How to forbid user to press the "next" button until each of api PUT promises is finished? And what to do if some of HTTP requests failed because of 500 on server?