ezraroi / ngJsTree

Angular Directive for the famous JS Tree
http://ezraroi.github.io/ngJsTree/
MIT License
270 stars 98 forks source link

Please write an example where by modifying the raw data JSON the tree gets dynamically updated #56

Closed PedroD closed 8 years ago

PedroD commented 8 years ago

I am aware that by reloading the tree this can be done, but that is not the way binding is expected to work, since current opened nodes, selected nodes, etc are all lost due to the reloading operation.

I would like to be able to have a two way binding between the three and the raw json showed in this demo: https://ezraroi.github.io/ngJsTree/

is that possible? Thanks!

ezraroi commented 8 years ago

Just look on the demo source code in the repository

renandegrandi commented 8 years ago

There is an attribute (should-apply), it must be assigned as (true), so any change in the object tree, will be applied.