Skip to content

Instantly share code, notes, and snippets.

@AvocadoVenom
Created October 3, 2019 22:15
Show Gist options
  • Select an option

  • Save AvocadoVenom/be5c3efd5ca859a3fd725122c5f89547 to your computer and use it in GitHub Desktop.

Select an option

Save AvocadoVenom/be5c3efd5ca859a3fd725122c5f89547 to your computer and use it in GitHub Desktop.
Overlay Loading Directive > Dynamic Overlay Container Service
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