wix-incubator / angular-tree-control

Angular JS Tree
http://wix.github.io/angular-tree-control
MIT License
708 stars 277 forks source link

can I push node by id? #271

Open zjzno1 opened 7 years ago

zjzno1 commented 7 years ago

hi! I use this Plug-in unit recently, and I meet a problem now. How can I push node by id? the doc(http://wix.github.io/angular-tree-control/) write this:

    $scope.treedata[1].children.push({label: "New Child", id:"some id", children: []})

can I push node by id?Not by array subscript.

Thank you