I recently needed to add drag & drop functionality to an angularjs web application I’m working on, none of the existing directives did exactly what I needed so I built my own. In building the directive, I needed a service to create UUIDs, so I built one of them too.
Design Goals
* Provide a mechanism to respond to a user dragging one element onto another
* No dependency on external frameworks
* No html template
* Applied via attribute
* Use native HTML5 drag & drop api
Your new post is loading...