1.0.1 • Published 1 year ago

@von-development-studio/primeng-confirmation-dialog v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

PrimeNG Confirmation Dialog

This library was generated with Angular CLI version 11.0.3.

Installing

  1. Add NPM package into your project:

    npm i @von-development-studio/primeng-confirmation-dialog -S
  2. Add VonConfirmationModule into imports section

    import { VonConfirmationModule } from '@von-development-studio/primeng-confirmation-dialog';
    
    ...
    
    @NgModule({
      imports: [
        ...
        VonConfirmationModule,
        ...
      ]
    })
    export class AppModule { }

Usage

  1. Add service in constructor:

    import { VonConfirmationDialogService } from '@von-development-studio/primeng-confirmation-dialog';
    
    constructor(
      ...
      protected confirmationDialog: VonConfirmationDialogService,
      ...
    ) { }
  2. Call service, open method, with configuration parameter:

    this.confirmationDialog.open<any>({
      save: of({})
    });
By Von Development Studio