# @vonage/vwc-angular-dialog

> This library exposes a service `VwcDialog` that enables you to open a `vwc-dialog` with an angular component.

Latest version **11.6.0** (published 2022-08-24) · 0 weekly downloads

## Install

```sh
npm install @vonage/vwc-angular-dialog
pnpm add @vonage/vwc-angular-dialog
yarn add @vonage/vwc-angular-dialog
bun add @vonage/vwc-angular-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 | 11.6.0 |
| Published | 2022-08-24 |
| First published | 2022-08-24 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 110 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | or.cpc, jeffswartz, rhainer, deliajolt, behaze, raulkg, liranbin, javiermolsanz, agus-vonage, yonatan.kra, v-kpheng, vgai-dev, nitzanhardon, eportolanvonage, web-il, iceberg-team, yinon, unified_portal, vreporter-npm, vbcbe, voxip_team, gunifydevops, yuri.guller, idanvon, nexmo-devrel, vvd, vonagemeetings, tweinfeld, vonage-jenkins, maikthomas, germangol, ashwinvprabhu, arivonage |

## Links

- npm: https://www.npmjs.com/package/@vonage/vwc-angular-dialog
- Repository: https://github.com/vonage/vivid-angular
- Homepage: https://github.com/vonage/vivid-angular#readme
- Issues: https://github.com/vonage/vivid-angular/issues
- npm.io page: https://npm.io/package/@vonage/vwc-angular-dialog

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 11.6.0 (latest) — 2022-08-24

## README

# vwc-dialog

This library exposes a service `VwcDialog` that enables you to open a `vwc-dialog` with an angular component.

## General Usage
1. Install `@voange/vivid` or `@vonage/vwc-dialog` and import the `vwc-dialog` to your application.
2. Use the `VwcDialogService` in order to interact with the dialog (read on for detailed instructions)

## Methods

### open(componentClass: Type<unknown>, dialogConfig: DialogConfig)

#### Arguments

`componentClass` - a component class to render inside the dialog
`dialogConfig` - a `DialogConfig` for the dialog.

#### DialogConfig

`data` - data to inject to the rendered component inside its data.
`parent` - and html element to inject the vwc-dialog into

#### Returns

`DialogInstance`

### Dialog Instance

#### Members
`closed$`: Observable<any> - an observable that changes its value when the dialog is closed with the default value or the data sent in the close method.
#### Methods
`close<T>(data: T) => void`

Closes the dialog and emits the data to the main service’s open observable.

#### Accepts
any

## Usage Example


[Demo](https://vonage.github.io/vivid-angular/dialog)

[Code](/apps/angular-vivid/src/app/dialog-demo)

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