Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ngx-bootstrap-confirm
Advanced tools
Readme
Bootstrap confirm provider for Angular 11+
https://ngxconfirm.9lessons.info/
npm install --save ngx-bootstrap ngx-bootstrap-confirm
or if you use yarn:
yarn add ngx-bootstrap ngx-bootstrap-confirm
Import NgxBootstrapConfirmModule into your app's modules:
import { NgxBootstrapConfirmModule } from 'ngx-bootstrap-confirm';
@NgModule({
imports: [
NgxBootstrapConfirmModule
]
})
Import NgxBootstrapConfirmService into your app's components:
import { Component } from '@angular/core';
import { NgxBootstrapConfirmService } from 'ngx-bootstrap-confirm';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor(private ngxBootstrapConfirmService: NgxBootstrapConfirmService){
}
action() {
let options ={
title: 'Sure you want to delete this comment?',
confirmLabel: 'Okay',
declineLabel: 'Cancel'
}
this.ngxBootstrapConfirmService.confirm(options).then((res: boolean) => {
if (res) {
console.log('Okay');
} else {
console.log('Cancel');
}
});
}
}
}
#app.component.html
<button (click)="action()">Action</button>
<router-outlet></router-outlet>
Copy in styles.scss
.modal-dialog {
width: 360px !important;
margin-top: 120px;
margin: 30px auto;
.modal-content {
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.confirm {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
border-radius: 5px;
min-height: 150px;
.content {
padding: 20px;
border-radius: 10px;
background-color: #fff !important;
font-weight: 700;
}
.buttons {
padding: 10px 15px;
float: right;
button {
margin-right: 10px;
}
}
}
}
The MIT License (MIT)
FAQs
Bootstrap confirm provider for Angular 11+
The npm package ngx-bootstrap-confirm receives a total of 23 weekly downloads. As such, ngx-bootstrap-confirm popularity was classified as not popular.
We found that ngx-bootstrap-confirm 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.