Following this post : Best approach to create recursive treeview dynamically from data API
I am able to create the recursive tree view from REST API. See Plunker here:
http://plnkr.co/edit/LJhAHne4zA6H0lFog1OI
But there is a problem which I am not able to solve is that. Whenever I Click on the + icon the form get repeated again. I do not want the form to get repeated on every click on +. I want to transfer the value/name which is associated with the + icon to the form.
Thanks in advance.
ContentListComponenttoAppComponentor wrap it with an*ngIf="expr"where theexpris only true where you want the form to be shown (perhaps only if it's the root node)