我有一个数据模型是一个数组有一些对象。这些对象可能包含一些孩子objects.so如何在一个NG重复attribue运行在这两种NG-重复.. 这里是一个examle JSON角度ng-重复子对象
[
{
"foo": "bar",
"values": null,
"children": [
{
"foo": "bar",
"values": null,
"children": null
}
]
},
{
"foo": "bar",
"children": [
{
"id": 1,
"ques": "something"
}
]
}
]
你的孩子对象有不同的atttirubtes的 – Sajeetharan
可能的复制[Angularjs:理解递归指令(http://stackoverflow.com/questions/19125551/angularjs-understanding-a-recursive-directive) – Grundy
@ user332863请接受正确的答案或告诉我们什么是不工作的。 – AntiHeadshot