marceljuenemann / angular-drag-and-drop-lists

Angular directives for sorting nested lists using the HTML5 Drag & Drop API
MIT License
2.16k stars 713 forks source link

Directive not rendering #370

Closed yevgetman closed 7 years ago

yevgetman commented 7 years ago

Im trying to implement a simple drag and drop case but its not rendering:

<script src="../angular.min.js"></script>

<script src="http://marceljuenemann.github.io/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js"></script>

<div class="btn" dnd-draggable >test</div>

Result is a standard element which is not draggable

marceljuenemann commented 7 years ago

You need to provide at least some data that can be dragged. dnd-draggable="null" should be enough.