Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-drag-and-drop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-drag-and-drop

Drag and drop using angular

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

How to use

Add import { DragMeModule } from 'drag-me'; in App Module

Then add it to imports
imports: [
    BrowserModule,
    DragMeModule
],
And in html use like
Add dragMe Directive to the element to drag
<div dragMe [dragdata]="item"></div>
Add dropHere Directive to the Container to Drop
<div  dropHere (dropped)='onDrop($event)'></div>

NB:[dragdata] is the data to carry,(dropped) is callback on drop

Adding style

On Dragging drag-src class is added to the dragging element and we can customize our own style

NPM Version : npm i drag-me

Keywords

FAQs

Package last updated on 15 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc