2014-07-15 5 views
0

난에 NG 반복을 사용하려면 다음과 같은 데이터가 NG를 반복 왜. 그것은 JSON 문자열의 "데이터"때문입니까?사용 방법

as.controller('Test', function($scope, $http, $rootScope) 
{ 
    $http.get($rootScope.appUrl + '/nao/test/test') 
     .success(function(data, status, headers, config) { 
      $scope.test = data; 
    }); 
}); 
+0

당신은 아무 생각이없는 이유는 무엇 : 여기

내 컨트롤러? – kihu

답변

2
<div ng-controller="Test"> 
    <tr ng-repeat="record in test.data"> 
    <td>{{record.namn}}</td> 
    </tr> 
</div> 
0
<div ng-controller="Test"> 
<tr ng-repeat="namn in test.data"> 
    <td>{{namn}}</td> 
</tr> 
</div>