2yy-ngx-overlay 中文文档教程
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)