Search code examples
angularjsdrag-and-drop

Is it possible to have drag and drop functionality with AngularJS without relying on jQuery UI?


I've seen http://codef0rmer.github.io/angular-dragdrop/#/list, but this requires jQuery and jQuery UI. If possible, I'd like to not have those dependencies.


Solution

  • The AngularJS documentation SURPRISINGLY has an example of this on the Compiler page. Check it out. You may have to add to it, but it is a great simple example of how to write a directive to get the draggable functionality.