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

Using the tool #405

Open RogerMito opened 7 years ago

RogerMito commented 7 years ago

Hello Friend. I am not able to use the code in my angular project 1.x. Just insert the angular library drag-and-drop-lists.js into my code? I did this and copied the HTML and JavaScript codes, however, I did not succeed. Would you help me?

OxLeon commented 7 years ago

Hey whats up! You need insert library (drag-and-drop-lists.js ) and in your angular module inject dependency 'dndLists' You could use this example http://plnkr.co/edit/OWwDCaYUjuN7fM5y5Btd?p=preview

RogerMito commented 7 years ago

Thanks for the help my friend.

It worked well here. Maybe I try to work out some transparency effect when dragging the blocks.

If I wanted, I can send a photo with the result obtained.