0

I am trying to implement a tree in AngularJS. I have to build the tree(i.e add nodes to tree), dynamically based on user input(from Angular Select). Here is the operation I want to do,

var a = { name : "concat", operands : [{method : {}},{method : {}}]}; a.operands[0].method = a;

When I try to do this kind of operation in AngularJS, I am getting RangeError: Maximum call stack size exceeded. is something wrong with this kind of operation.

I am getting this error, because the Array populating the dropdown is getting modified every time and causing this error. Sorry for the inconvenience.

1 Answer 1

1

I think, something is missing in your code. If you can share your code then I will be able to help more. Or you can checkout this blog. In this blog, we are creating a tree with two small directive. You can modify directive according to your requirement.

Sign up to request clarification or add additional context in comments.

Comments

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.