Shamoon
Shamoon

Reputation: 43501

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.

Upvotes: 6

Views: 1533

Answers (2)

aqingsao
aqingsao

Reputation: 2104

Yes, ngDraggable is designed to support drag-drop functionality without dependency of jQuery UI.

I did some spike and it worked well on PC browsers, however, it still has some UI issues on mobile so far. Here is a live demo.

Upvotes: 1

Zack Argyle
Zack Argyle

Reputation: 8407

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.

Upvotes: 4

Related Questions