我一直在寻找一些方法来知道两个或多个 ajax 调用何时使用 AngularJS 完成,但我只能使用 jQuery 找到它:
$.when(promise3, promise5).done(
    function(threeSquare, fiveSquare) {
        console.info(threeSquare, fiveSquare);
    }
);
和:
var promises = [
    $.getJSON('square/2'),
    $.getJSON('square/3'),
    $.getJSON('square/4'),
    $.getJSON('square/5')
];
$.when.apply($, promises).done(function() {
    console.info(arguments);
});
有没有办法使用AngularJS做这样的事情?谢谢你的支持!