2

I need to delete a node in Hierarchy Tree built using the link http://jsfiddle.net/brendanowen/uXbn6/8/

The delete option explained deletes only the child node.

 $scope.delete = function(data) {
        data.nodes = [];
    };

But i need to delete the parent node(data) itself. I have tried $scope.data.splice($index,1) which deletes the object only at straight first level. Splicing and filtering doesn't help in deleting hierarchy level nodes (e.g. node at level 3) in hierarchy. I have a hierarchy level of 8. How to proceed on this logic?Please help.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.