angular $q.all snippet