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.
ng-confirm-box
Advanced tools
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
This library was generated with Angular CLI version 14.2.0.
npm i ng-confirm-box
Add NgConfirmModule to App NgModule
import NgConfirmModule in app.module.ts
import { NgModule } from '@angular/core';
import { HeaderComponent } from './component/header/header.component';
import {NgConfirmModule} from 'ng-confirm-box'; <---- to be added
@NgModule({
declarations: [
HeaderComponent,
],
imports: [
NgConfirmModule <---- to be added
],
})
export class AppModule { }
import { Component } from '@angular/core';
import { NgConfirmService } from 'ng-confirm-box';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor(
private confirmService: NgConfirmService <---to be injected
) { }
ngOnInit(): void {
}
deleteEmployee(id: number) {
this.confirmService.showConfirm("Are you sure want to Delete?",
() => {
//your logic if Yes clicked
},
() => {
//yor logic if No clicked
})
}
}
MIT
GitHub @SashikumarYadav · LinkedIn @SashikumarYadav · Medium @SashikumarYadav
FAQs
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
The npm package ng-confirm-box receives a total of 87 weekly downloads. As such, ng-confirm-box popularity was classified as not popular.
We found that ng-confirm-box 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.