I'm working on a project which partially consists of displaying a treeview of documents.
I recently ran into a problem and I don't know how to resolve it so I came here to ask for help.
The issue is I have an array which contains all the data I need. There are docs in folders and/or folders in folders, etc... I know how to render the 'children' of each folder but the problem is I don't know how to do it generally. I've coded a simple JSFiddle to better illustrate the problem : http://jsfiddle.net/k3nj6pco/
You can see that showing children 1.1 and 1.2 is easy. But I can't figure out how to display child 1.1.1 without making a third ng-repeatloop. And I would like to generalize to n depth-level.
Does anyone know how I can resolve this issue ? Thank you very much for your time !