i want to bind tree view using angular in list (li), accordion or other
angular code
$scope.groups = [
{
ID: 1,
Name: "parent",
ParentID:0
},
{
ID: 2,
Name: "child",
ParentID: 1
},
{
ID: 3,
Name: "subchild1",
ParentID: 2
},
{
ID: 4,
Name: "subchild2",
ParentID: 2
}
Amit Kumar SinghPosted Dec 21, 2016, 1:38 AM
Have a look at this fiddle http://jsfiddle.net/brendanowen/uXbn6/8/
This should give you a good idea of how to display a
tree like structureusing angular. It is kind of using recursion in html!