这是因为$scope.process在$http.post完成之前就返回了,但是如何使process()返回承诺而不是未定义的承诺呢?This is the one in charge to send the request $timeout(function() {
return $http.post
我有服务中的承诺链的如下布局. var promise = $http({}).then(function(firstdataof promises for fetch additional data return $httpreturn finalData; return $q.all(promises);
我有一个解决承诺而不返回它的用例。在内部捕获错误,但不希望调用者等待承诺的解决。doSomething() Promise.resolve() // do something.
})was created in a handler at internal/timers.js:439:21 but was not returned from it, see http://.