12.0.0 • Published 4 years ago

@devcorp-libs/dialog v12.0.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

Dialog

A dialog service similar to the @angular/material/dialog so it can be used to create dialogs anywhere with any libraries in the same fashion.

It appends the component to the body, so any overlay and client window positioning need to be handled.

Usage

@Component()
class YourDialogComponent {}

@Component()
class YourComponent {

  constructor(private readonly dialog: DclDialogService) { }

  public showDialog() {
    const dialogRef = this.dialog.open(YourDialogComponent, { data: {} });

    dialogRef.afterClosed().subscribe(result => {
      // Do something
    });
  }
}