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;
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;