且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ng-repeat在其他ng-repeat中不起作用

更新时间:2023-08-18 22:05:58

有关该问题的信息实际上并不多.

There is actually not much information about the question.

如果从远程服务器接收到json-data,则应始终检查并将其转换为真实的json-object.

If you receive the json-data from a remote server, you should always check and convert it to a real json-object.

您可以简单地使用

$scope.data = response.data.tests;

$scope.getData = function() 
{
   return angular.toJson($scope.data);
}

或者您可以通过以下方式进行测试:

or you can test it with:

{{data | json}}