getOverlayContainerParent function

  1. @Injectable()
HtmlElement getOverlayContainerParent(
  1. Document document,
  2. @Optional() @SkipSelf() @Inject(overlayContainerParent) Object? containerParent
)

Implementation

@Injectable()
HtmlElement getOverlayContainerParent(
    Document document,
    @Optional()
    @SkipSelf()
    @Inject(overlayContainerParent)
        Object? containerParent) {
  return containerParent as HtmlElement? ??
      document.querySelector('body') as HtmlElement;
}