Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ngconf-dragdrop
Advanced tools
This project was generated with Angular CLI version 10.0.5.
Drag Drop feature for Angular.
npm i ngconf-dragdrop --save
NPM Package Link
Import NgconfDragDropModule in app.module.ts file.
app.module.ts
import {NgconfDragDropModule} from 'ngconf-dragdrop';
imports: [
BrowserModule,
AppRoutingModule,
NgconfDragDropModule,
HttpClientModule
]
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 :)
FAQs
Angular Library to provide Drag Interface to Angular apps.
We found that ngconf-dragdrop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.