I'm currently working on integrating a tree structure in AngularJS. The goal is to construct the tree by dynamically adding nodes based on user input from an Angular Select element. Here is the specific operation I'm trying to accomplish:
var a = { name : "concat", operands : [{method : {}},{method : {}}]}; a.operands[0].method = a;
Whenever I attempt this kind of operation in AngularJS, I encounter a RangeError: Maximum call stack size exceeded. Is there a mistake in this type of operation?
The reason for this error is that the array populating the dropdown is being modified each time, leading to this issue. Apologies for any inconvenience caused.