0.0.3 • Published 4 years ago
2yy-ngx-overlay v0.0.3
NgxOverlay
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
- Create your overlay slot (with your overlay config)
- 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)