Skip to content

damingerdai/ngx-dom-confetti

Repository files navigation

Ngx Dom Confetti

Dom Confetti for Angular

Install

for npm user

npm install ngx-dom-confetti

for yarn user

yarn add ngx-dom-confetti

for pnpm user

pnpm install ngx-dom-confetti

Use

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>

license

MIT