0.0.12 • Published 2 years ago

ng-perfect-dialog v0.0.12

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

ng-perfect dialog (ZERO DEPENDENCIES) 24 kB

All types of dialogs in one package for Angular

Build Status Support Support Support Support Support

Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.

Table of Contents

Getting Started

Installation

npm i ng-perfect-dialog

Implementation

Import NgxDialogsModule in your application module. For example: app.module.ts

import { PerfectDialogModule } from "ng-perfect-dialog";

@NgModule({
  imports: [
    PerfectDialogModule,
    // ...
  ],
})
export class AppModule {}
import { PerfectDialogService } from "ng-perfect-dialog";

export class HomeComponent {
  constructor(private perfectDialogService: PerfectDialogService) {}

  open() {
    this.perfectDialogService.open({
      component: InfoComponent,
      modalConfigurations: {
        disableClose: false,
        width: "48rem",
      },
      data: {
        name: "OLawale",
      },
    });
  }

  cancel() {
    this.perfectDialogService.$close.next(true);
  }
}
export class CustomActionModalComponent implements OnInit {
  name: string = "";
}
  • // .component.html
<perfect-dialog></perfect-dialog>

Creator

  • Olawale Afuye

License

Support License

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago