Angular create a recursive loop in template to render comments tree
问题 Hi I want to render the comments of my applications as comments and its reply's but I dont have idea on how to do it with my data: My data looks like: "comments": [ { "id": "30", "content": "Comment 1", "parent": "0", }, { "id": "31", "content": "Comment 2", "parent": "0", }, { "id": "32", "content": "comment 3", "parent": "0", }, { "id": "33", "content": "sub comment 1-1", "parent": "30", }, { "id": "34", "content": "sub comment 2-1", "parent": "31", }, { "id": "35", "content": "sub sub