ng-nestable icon indicating copy to clipboard operation
ng-nestable copied to clipboard

Does not display item data in the first run

Open mustafabereket opened this issue 9 years ago • 8 comments

Hi,

I am trying to use this nestable, but I have a problem: screen shot 2016-01-21 at 5 43 52 pm

When I first go into the page, it shows the nestable list and its tree fine, however their names doesnt show up. Everything works fine after I refresh the page, but it doesnt work when I first go to the page and I get this error: "root.nestable" is not a function

Any help would be so appreciated. Thanks!

mustafabereket avatar Jan 22 '16 01:01 mustafabereket

Anyone can help me with this?

mustafabereket avatar Feb 24 '16 23:02 mustafabereket

I had the same problem - for me it was that wiredep was not adding in the jquery.nestable.* files.

juniorfoo avatar Feb 29 '16 16:02 juniorfoo

i am having same problem, it happens in angular version

mjaniko avatar Mar 21 '16 17:03 mjaniko

Hi mustafabereket.

I had the the same issue. I fixed it by including lib/jquery.nestable.js.

But it seems that $item isn't evaluated.

Romz avatar Mar 23 '16 09:03 Romz

The variable "$element" in ngNestableItem link function is an instance of jQlite and the data("item") is undefined. using jQuery($element[0]) seems to work.

Romz avatar Mar 23 '16 10:03 Romz

I already added jquery.nestable.js, so I am curious what is the reason? What else can I do? Can you let me know you there is something else to do?

mustafabereket avatar Mar 23 '16 17:03 mustafabereket

For me, inlcude the jquery.nestable.js solved "root.nestable is not a function" error. Try to include jquery before the angular.js file. It solves empty list for me.

Romz avatar Mar 24 '16 07:03 Romz

Finally, i will use this: http://angular-ui-tree.github.io/angular-ui-tree/#/basic-example

Romz avatar Mar 25 '16 09:03 Romz