# @wizdm/dialog

> A declarative dialog for Angular Material

Latest version **1.0.0** (published 2020-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wizdm/dialog
pnpm add @wizdm/dialog
yarn add @wizdm/dialog
bun add @wizdm/dialog
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-07 |
| First published | 2020-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 176.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 133 |
| Maintainers | lasfrancisco |
| Keywords | Angular, Material, Dialog |

## Links

- npm: https://www.npmjs.com/package/@wizdm/dialog
- Repository: https://github.com/wizdmio/wizdm/tree/master/libs/dialog
- Homepage: https://wizdm.io/docs/dialog
- Issues: https://github.com/wizdmio/wizdm/issues
- npm.io page: https://npm.io/package/@wizdm/dialog

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-05-07

## README

# Dialog 
Dialog is a package providing a declarative dialog component by extending the [Angular Material Dialog](https://material.angular.io/components/dialog/api). 

## Usage example
`<wm-dialog>` is a component designed to display a popup dialog on request. The example below illustrates how the component is used to design the dialog content by using the very same [MatDialog directives](https://material.angular.io/components/dialog/api#directives): 

```html
<!-- Opens the dialog on click -->
<button mat-button (click)="popup.open()">Open Popup</button>

<!-- Hidden dialog -->
<wm-dialog disableClose (closedChange)="onDialogClosed($event)" #popup>

  <h2 mat-dialog-title><b>Pop up dialog</b></h2>

  <mat-dialog-content class="text-justify">
    This popup dialog template is part of the AppComponent.
    There's no need of creating a component or a template on purpose
    for a dialog to work anymore.
  </mat-dialog-content>

  <mat-dialog-actions align="end">
    <button mat-button color="warn" [mat-dialog-close]="false">Ok</button>
    <button mat-button color="primary" [mat-dialog-close]="true">Ok</button>
  </mat-dialog-actions>

</wm-dialog>
```
By itself the component does not render anything until its `open()` method is called.

---
_Source: https://npm.io/package/@wizdm/dialog · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
