Skip to content
Angular HTML5 Drag and Drop directive written in pure js with no dependency on JQuery.
Branch: master
Clone or download
ganarajpr Merge pull request #177 from DestinyItemManager/master
Don't eval on-drag-* if those functions have not been provided
Latest commit 8950445 May 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Fix calling function on drop failure. Nov 17, 2015
docs Fix broken Markdown headings Apr 17, 2017
.gitignore
.jshintrc Add JSHint configuration and reformat source accordingly Mar 14, 2015
.npmignore Current docs converted to MkDocs with a better getting started Feb 11, 2016
.release.json Add release-it configuration Mar 14, 2015
.travis.yml
Gulpfile.js
LICENSE Rename License.md to LICENSE Mar 14, 2015
README.md
bower.json
draganddrop.js Also avoid parsing uiOnDragOver every dragover event Jul 22, 2017
draganddrop.min.js
index.js Export module name so it works like other angular modules in npm Jul 17, 2015
mkdocs.yml
package.json 1.2.2 Aug 3, 2016

README.md

Angular-DragDrop

npm version Build status ![Gitter](https://badges.gitter.im/Join Chat.svg)

Angular-DragDrop is a angular HTML5 Drag and Drop directive written in pure with no dependency on JQuery.

This is based on the work done by Jason Turim. While this blog post was the inspiration for creating a native Drag and Drop solution, the intention was to create something that was more generic.

This implementation is mainly different from the one posted in the blog in the following areas :

  1. Angular-DragDrop does not create an isolate scope. This has huge benefits when it comes to working with other directives. NOTE : It also does not pollute the scope with any variables or functions.

  2. It does not depend on any kind of an ID attribute ( being either present or generated on the fly ).

  3. It allows one to create channels on which different drag and drop directive combinations can work on in the same page ( more on this later ) .

Pull requests are welcome.

Documentation

Looking for Active Contributors.

This repo needs active contributers and maintainers. If you are interested in being one of the people who would like to actively maintain this repo, please let me know.

The MIT License

Copyright (c) 2014 Ganaraj P R, Nebithi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.