How to handle multiple async tasks in angular.js? How to handle multiple async tasks in angular.js? mongodb mongodb