0.0.3 • Published 2 years ago

2yy-ngx-overlay v0.0.3

Weekly downloads
33
License
MIT
Repository
github
Last release
2 years ago

NgxOverlay

Test Maintainability Test Coverage

Installation

npm i 2yy-ngx-overlay

Motivation

  • To follow the DRY Principle when writing overlay showing/hiding logic.
  • Manage multiple overlay state in a screen.

Usage

  1. Create your overlay slot (with your overlay config)
  2. Attach your overlay to slot

Create your overlay slot

this.myOverlaySlotId = this.ngxOverlayService.addOverlaySlot(myOverlayConfig)

Attach your overlay to slot

this.ngxOverlayService.show(this.myPortal, this.myOverlaySlotId)

License

MIT License

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago