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
When using a JSON as a data source the order of the items in the array matters.
If you have 4 items in like this:
|-level 1
|----level 2
|--------level 3
but the array has them in this order [level1,level3,level2] the level 3 item is not shown.
I forked and modified a plunked: http://plnkr.co/edit/GACPehDOSFaBwaDjeshS
Thanks in advance.
Lori
The text was updated successfully, but these errors were encountered:
It's is a order problem
$scope.treeData.push({ id : '7', parent : '3', text : 'Missing Node'});
$scope.treeData.push({ id : '3', parent : '2', text : 'Level 2'});
change to:
$scope.treeData.push({ id : '3', parent : '2', text : 'Level 2'});
$scope.treeData.push({ id : '7', parent : '3', text : 'Missing Node'});
I know it's an order problem, but in my opinion order should not matter.
My Tree Model is deliverd from a backend service that uses closure tables to emulate the the hierarchy so the order is incosistent, especially after some moves.
Hi.
When using a JSON as a data source the order of the items in the array matters.
If you have 4 items in like this:
|-level 1
|----level 2
|--------level 3
but the array has them in this order [level1,level3,level2] the level 3 item is not shown.
I forked and modified a plunked: http://plnkr.co/edit/GACPehDOSFaBwaDjeshS
Thanks in advance.
Lori
The text was updated successfully, but these errors were encountered: