[
{
"key":"ntd",
"value":
[
["a","b","c"],
["x","y","z"],
]
}
]
我想在ng-repeat中迭代上面的JSON并打印为[" a"," b"," c"],[&# 34; X"" Y"" Z"]
<div ng-repeat="r in value.value">
//code goes here
</div>
答案 0 :(得分:0)
使用嵌套的ng-repeat
<div ng-repeat="r in data">
<div ng-repeat="(key, value) in r.value">
Key: {{r.key}}
<div ng-repeat="v in value">
{{v}}
</div>
</div>
</div>