ezraroi / ngJsTree

Angular Directive for the famous JS Tree
http://ezraroi.github.io/ngJsTree/
MIT License
270 stars 98 forks source link

maybe have a bug in the getOptions method #89

Open HalleyLi opened 8 years ago

HalleyLi commented 8 years ago

because in the method you first use JSON.stringify(config) and the last you return result; resulting in that when I modify the treeData; the result is constant ; so the $scope.$watch(getOptions()) method is not correct;I can't normally destroy() and init() the tree;

ezraroi commented 8 years ago

Please write a plunker that reproduce this, i have used it for 2 years with no problems