Created
October 3, 2019 22:15
-
-
Save AvocadoVenom/be5c3efd5ca859a3fd725122c5f89547 to your computer and use it in GitHub Desktop.
Overlay Loading Directive > Dynamic Overlay Container Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { OverlayContainer } from '@angular/cdk/overlay'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class DynamicOverlayContainer extends OverlayContainer { | |
| public setContainerElement(containerElement: HTMLElement): void { | |
| this._containerElement = containerElement; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment