Open kentlee87 opened 8 years ago
I had the same problem.
Looking at the source, we have this line:
<i class="collapsed" data-ng-show="node.' + nodeChildren + '.length && node.collapsed" data-ng-click="' + treeId + '.selectNodeHead(node)"></i>
You can see that it registers the ng-click under "treeId".selectNodeHead(node)
. In my case, I had the treeId
as "modulos-grupo" (with a dash), which is an invalid name for a property or variable. Changing the id from "modulos-grupo" to "modulosgrupo" fixed the problem.
I setup the tree using the example given. A simple tree structure:
$scope.folderTreeList = [{ name: "folder_1", label: "Folder 1", collapsed: true, child: [{ name: "file_1", label: "Superman.txt" }] }, { name: "folder_2", label: "Folder 2" }];
The tree able to render correctly. But when I clicked on the folder icon, it won't expand. No error thrown in my firebug. Is a simple setup. But not working. The demo in jsfiddle working fine.