您可以使用$ q的函数“ all”:
function giftControler ($scope, $http, $q) { var names = $http.get("names.json"), naughty = $http.get("naughty.json"), nice = $http.get("nice.json"); $q.all([names, naughty,nice]).then(function(arrayOfResults) { ... This callback would be called when all promised would be resolved });这样有点干净。
这是文档化的链接:http
://docs.angularjs.org/api/ng.$q



