You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 22, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 22, 2020. It is now read-only.
Nested trees are something that should work, but I have not tested that scenario so it may not work as expected. Note that the selection handling would be independent for each tree in that case.
In angular.tree, there is only one template, so you need to make that template handle different node types. Something like this:
<ul ng-tree="clients">
<li each="item in children()">{{item.name}}</li>
</ul>
Then you would need to define a function on your client, account, and party that returned that node's children list. Unfortunately, at this point, there is not a mechanism to define a function on the scope to return the children list. You can use ngSwitch, ngInclude, etc to customize the node view based on the type of node being rendered.
Activity
dump247 commentedon Mar 25, 2013
Nested trees are something that should work, but I have not tested that scenario so it may not work as expected. Note that the selection handling would be independent for each tree in that case.
In angular.tree, there is only one template, so you need to make that template handle different node types. Something like this:
Then you would need to define a function on your client, account, and party that returned that node's children list. Unfortunately, at this point, there is not a mechanism to define a function on the scope to return the children list. You can use ngSwitch, ngInclude, etc to customize the node view based on the type of node being rendered.