我已经测试了您的代码,正如tymeJV所说,您的实现没有问题,我建议您检查控制台窗口中是否存在一些可能的错误。
例:
function EntryCtrl ($scope, $http) { $scope.rootEntry = []; $http.get('https://api.github.com/users/mralexgray/repos').success(function(root) { $scope.rootEntry = root; console.log($scope.rootEntry); });}实时示例:http :
//plnkr.co/edit/Grlgfob6tjE63JizWdCD?p=preview



