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

ngconf-dragdrop

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngconf-dragdrop

Angular Library to provide Drag Interface to Angular apps.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Ngconf-DragDrop Library

This project was generated with Angular CLI version 10.0.5.

ngconf-dragdrop Drag Drop feature for Angular.

Stackblitz Demo

Step - 1

npm i ngconf-dragdrop --save
NPM Package Link

Step - 2

Import NgconfDragDropModule in app.module.ts file.

app.module.ts

import {NgconfDragDropModule} from 'ngconf-dragdrop';
 imports: [
    BrowserModule,
    AppRoutingModule,
    NgconfDragDropModule,
    HttpClientModule
  ]

Step - 3

This step is to quick start the usage of package later with the understanding of workflow you can
modify the code. You can have a look in our stackbliz demo for more clarity.
app.component.css

.drag{
    height: 100px;
    width: 100px;
    border: solid 3px;
}

.container{
 border: dotted 3px;
 min-height: 500px;
}

If you dont use drag boundary then element can be moved anywhere in the document.
app.component.html

<div class="container mt-5 " ngDragBoundary>
    <div class="drag" ngDrag>
       <h5 class="text-muted text-center mt-3">I am Draggable :)</h5>
    </div>
</div> 


That's it you are good to go. Happy Coding :)

Keywords

FAQs

Package last updated on 11 Aug 2020

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