codef0rmer / angular-dragdrop

Implementing jQueryUI Drag and Drop functionality in AngularJS (with Animation) is easier than ever
http://codef0rmer.github.com/angular-dragdrop/#/
MIT License
1.78k stars 574 forks source link

Error on setup #308

Closed yevgetman closed 7 years ago

yevgetman commented 7 years ago

I have included angular-dragdrop.min.js, set ngDropDrop as a dependency in my app, and placed the following markup in my template: <span data-drag="true" jqyoui-draggable>So you think you can drag</span>

When I run the app I get the following error:

TypeError: element.draggable is not a function
    at updateDraggable (http://localhost:8080/public/js/lib/angular-dragdrop.js:331:21)
    at Object.link (http://localhost:8080/public/js/lib/angular-dragdrop.js:341:9)
    at http://localhost:8080/public/js/lib/angular/angular.min.js:16:71
    at ta (http://localhost:8080/public/js/lib/angular/angular.min.js:84:35)
    at n (http://localhost:8080/public/js/lib/angular/angular.min.js:69:227)
    at g (http://localhost:8080/public/js/lib/angular/angular.min.js:60:496)
    at http://localhost:8080/public/js/lib/angular/angular.min.js:60:119
    at Object.<anonymous> (http://localhost:8080/public/js/lib/angular/angular-ui-router.min.js:7:24507)
    at http://localhost:8080/public/js/lib/angular/angular.min.js:16:71
    at ta (http://localhost:8080/public/js/lib/angular/angular.min.js:84:35) <span data-drag="true" jqyoui-draggable="" class="ng-scope">
codef0rmer commented 7 years ago

@yevgetman Make sure you load jquery and jqueryUI before that.