
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
ngx-dom-confetti
Advanced tools
Dom Confetti for Angular
for npm user
npm install ngx-dom-confetti
for yarn user
yarn add ngx-dom-confetti
for pnpm user
pnpm install ngx-dom-confetti
import NgxDomConfettiModule to AppModule
import { NgxDomConfettiModule } from 'ngx-dom-confetti';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
NgxDomConfettiModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
use ngx-dom-confetti
<button mat-raised-button color="primary">
<ngx-dom-confetti>
Hit Me!
</ngx-dom-confetti>
</button>
@Component({
selector: 'app-root',
template: `
<div class="center">
<button #btn="matButton" mat-raised-button color="primary" (click)="hitWithService()">
Hit Me with Service!
</button>
</div>
`,
styleUrls: ['./app.component.scss']
})
export class AppComponent {
ngxDomConfettiService: NgxDomConfettiService = inject(NgxDomConfettiService);
@ViewChild('btn', { read: ElementRef })
btn!: ElementRef<HTMLButtonElement>;
hitWithService() {
const el = this.btn.nativeElement.children.item(0) as HTMLElement;
if (el) {
this.ngxDomConfettiService.open(el,this.config);
}
}
}
@Component({
selector: 'app-root',
template: `
<div class="center">
<button mat-raised-button color="primary" (click)="hitWithDirective()">
Hit Me with Directive!
</button>
</div>
`,
styleUrls: ['./app.component.scss']
})
export class AppComponent {
ngxDomConfettiService: NgxDomConfettiService = inject(NgxDomConfettiService);
@ViewChild(NgxConfettiDirective) confettiDirective!: NgxConfettiDirective;
hitWithDirective() {
this.confettiDirective?.launch();
}
}
FAQs
[Dom Confetti](https://www.npmjs.com/package/dom-confetti) for Angular
The npm package ngx-dom-confetti receives a total of 2 weekly downloads. As such, ngx-dom-confetti popularity was classified as not popular.
We found that ngx-dom-confetti demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.