$ q.all只返回1个对象(角度离子应用程序)

时间:2016-03-29 12:36:42

标签: angularjs asynchronous ionic-framework

我有以下功能:

$q.all([Timeline.allEvents($http),
           Timeline.allTimeSlots($http)]).then(function (returnValues) {
               Timeline.constructedTotalTimeline(returnValues)
           });

应该使用两个异步调用的结果调用Timeline.construcedTotalTimeline。该函数只接收第一个对象(由Timeline.allEvents返回的对象)。 我在这里缺少什么?

0 个答案:

没有答案