Although I am still relatively new to Angular, I need to make some modifications to a treeview directive that I found on NgModules. The existing code looks promising, but I want to customize it to include the ability to add, delete, or modify items.
You can find my current progress on this project in this Plunker.
Prior to using Angular, I was working with jQuery to create my treeview and had completed all necessary tasks. However, now that I'm transitioning to Angular, I need to approach it differently.
Based on what I've understood so far, this directive uses nested recursive directives to build the tree structure efficiently. Everything works smoothly, but I anticipate having around 3000-4000 items to display in the treeview. When I try to do this using the current code, the screen slows down significantly and there's a high memory consumption due to multiple watch expressions (5-7 per item).
If you'd like to view my code, you can check it out in this Plunker.
I attempted to use one-time binding in ng-repeat with the :: notation, which did improve performance. However, I'm now facing challenges implementing my add or update methods. Is there a solution that would allow me to achieve this?
<li data-ng-repeat="node in ::' + treeModel + '">