I have following (json) object:
[
{
name: "Foo",
children: [{
name: "bar",
children:[{
...
}]
}]
}
]
There can be any number of children/objects in any level. Now I want to get following HTML Code:
<ul>
<li>Foo</li>
<li>
<ul>
<li>Bar</li>
</ul>
</li>
<ul>
But of course there could be 10 or more levels with 20 or more children per level.
Is there any way to do that? Thank you very much!
-
{{row.Name}}
But this will only display the first level. Now I could add the second level by hand, and the 3rd, and so on. But since I dont know how many levels there will be, I need some general solution. – Tream Oct 23 '14 at 13:33