Uncaught Neither data nor ajax settings supplied ::: Jstree and angularJS using promise

444 views
Skip to first unread message

09nadita

unread,
Jul 7, 2013, 11:36:16 AM7/7/13
to ang...@googlegroups.com

I lost two days trying to solve this problem by myself, but I give up. pleaseee help . i want to load my tree using jstree and promise AngularJS

but I keep getting this error:

Uncaught Neither data nor ajax settings supplied.

i can see im my html page jsut the pluging loading and no result :( y'll find in thi link my code .

http://plnkr.co/edit/kDjFCa4x6Ghyb3pwghXc?p=preview

Thank you very much :)

09nadita

unread,
Jul 7, 2013, 5:06:12 PM7/7/13
to ang...@googlegroups.com
 i I solved the problem, it is enough to add  : third argument of scope.$watch to true, setting "json_data" to

"json_data" :{
 "data":scope.jstree.data
}

 I hope that my solution also helps you
Reply all
Reply to author
Forward
0 new messages