Angular 4 FormArray - Tree Hierachy

时间:2017-08-03 13:40:09

标签: angular formarray

有没有人有一个使用带有分层树结构的FormArray的工作示例?

基本上我正在尝试为Hierachy创建内联编辑

我可以让它工作到第一级,但我很难过如何让它以递归方式调用它的孩子

由于

1 个答案:

答案 0 :(得分:1)

I was overthinking the issue, the answer is a straight recursion routine. However it can be be a bit fiddly to get going.

I have included a git repo of the answer

https://github.com/swalwellj/FormArray-Tree