# ngx-spreadmodal

> If you need a modal that takes up whole screen, this modal does that with some neat extra features.

Latest version **0.6.0** (published 2024-06-02) · 0 weekly downloads

## Install

```sh
npm install ngx-spreadmodal
pnpm add ngx-spreadmodal
yarn add ngx-spreadmodal
bun add ngx-spreadmodal
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2024-06-02 |
| First published | 2018-11-09 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 31.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jadro |
| Keywords | Angular, Modal, Fullscreen |

## Links

- npm: https://www.npmjs.com/package/ngx-spreadmodal
- npm.io page: https://npm.io/package/ngx-spreadmodal

## Dependencies (1)

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

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K 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
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 0.6.0 (latest) — 2024-06-02
- 0.5.3 — 2024-05-20
- 0.5.2 — 2024-05-20
- 0.5.1 — 2024-05-20
- 0.5.0 — 2024-05-20
- 0.4.1 — 2018-11-14
- 0.4.0 — 2018-11-14
- 0.3.1 — 2018-11-12
- 0.3.0 — 2018-11-12
- 0.2.2 — 2018-11-12
- 0.2.1 — 2018-11-12
- 0.2.0 — 2018-11-12
- 0.1.0 — 2018-11-12
- 0.0.1 — 2018-11-09

## README

# NgxSpreadmodal

If you need a modal that takes up whole screen, this modal does that
with some neat extra features.


[DEMO](https://jkrajinovic.github.io/ngx-spreadmodal/docs/)

## Use it like this
In your component HTML file
```
<ngx-spreadmodal #spread>
Modal content goes here
</ngx-spreadmodal>


<button (click)="openModal()">Open Modal</button>
<button (click)="closeModal()">Close Modal</button>
```

In your component class

```
import { Component, ViewChild} from '@angular/core';
import { NgxSpreadmodalComponent } from 'ngx-spreadmodal';

export class AppComponent {
  
  @ViewChild('spread') spread:NgxSpreadmodalComponent;

  openModal(){
    this.spread.openModal();
  }

  closeModal(){
    this.spread.closeModal();
  }
  }
```

To act upon modal animation completion use promise.

```
  openModal(){
    this.spread.openModal().then(() =>{
      console.log('modal opened');
    });
  }

  closeModal(){
    this.spread.closeModal().then(()=>{
      console.log('modal closed');
    });
  }
```

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