ezraroi / ngJsTree

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

How to Refresh Tree #114

Closed smohammedyasin closed 7 years ago

smohammedyasin commented 7 years ago

Hello,

This is not an issues. I;m adding tree nodes and text from modal popup. i need to refresh tree once i added data in to server.

Appreciate for Quick and best response

gauravbhavsar commented 7 years ago

Change a version number each time you added new node, it will refresh tree.

On Sun, Apr 30, 2017 at 3:06 PM, smohammedyasin notifications@github.com wrote:

Hello,

This is not an issues. I;m adding tree nodes and text from modal popup. i need to refresh tree once i added data in to server.

Appreciate for Quick and best response

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ezraroi/ngJsTree/issues/114, or mute the thread https://github.com/notifications/unsubscribe-auth/AFMHauQdfXHfEVzoLZeKjhCgC9Svw-6oks5r1FYugaJpZM4NMhVe .

-- Thank & Regards; Gaurav Bhavsar skype : gauravbhavsar8@live.com mobile : 9022131550

ezraroi commented 7 years ago

Hi, the tree should be updated automatically once you add a new node to the nodes array. The version trick should be sued when you want to complicity redraw the tree (in case you remove all nodes or such, which in that case it will be more performent)