vitoravale / lvlDragDrop

Native AngularJS drag and drop directive

Home Page:http://jasonturim.wordpress.com/2013/09/01/angularjs-drag-and-drop/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Native AngularJs drag and drop directive

An easy to use, native, directive to enable drag/drop in your angular app. This directive has no dependency on jQuery or other frameworks, it does require a browser that supports the HTML5 drag/drop events.

Live Demo

Documentation

UUID Service

A very simple service for working with UUIDs.

Live Demo

Documentation

Changes in this fork

The original repo doesn't seem to get updates, so I've added my changes and fixes to my own fork.

  • Clean up code (indentation, semicolons)
  • Fixed bower.json to include the required lvl-uuid.js as well
  • Added the ability to disable drag and drop: <div lvl-draggable="{{ authentication.isAdmin() }}"></div>
  • Fixed AngularJS 1.3 compatibility by returning id's instead of elements
  • Fixed a big memory leak
  • Add a lvl-dragging class to the element while it's being dragged

Install this fork

bower install https://github.com/kevinrenskers/lvlDragDrop.git --save

About

Native AngularJS drag and drop directive

http://jasonturim.wordpress.com/2013/09/01/angularjs-drag-and-drop/

License:MIT License


Languages

Language:JavaScript 100.0%