Fix for #84 - ensuring expand-level is respected when tree_data is loaded dynamically. This has a side-effect of ensuring the tree cannot be collapsed below this initial starting level, which may not be optimal. Any advice on how to achieve this would be welcome.
New feature - allow the dev to programmatically expand the tree to a certain node, by passing the expandingproperty value of that node into a $rootscope variable which the directive watches. Again, there may be a better way of doing this than using $rootscope, and if so any advice would be welcome.
This pull request contains:
Fix for #84 - ensuring expand-level is respected when tree_data is loaded dynamically. This has a side-effect of ensuring the tree cannot be collapsed below this initial starting level, which may not be optimal. Any advice on how to achieve this would be welcome.
New feature - allow the dev to programmatically expand the tree to a certain node, by passing the expandingproperty value of that node into a $rootscope variable which the directive watches. Again, there may be a better way of doing this than using $rootscope, and if so any advice would be welcome.