MCPcopy Create free account
hub / github.com/angular/components / _getOrigin

Method _getOrigin

src/cdk/overlay/overlay-directives.ts:436–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

434 }
435
436 private _getOrigin(): FlexibleConnectedPositionStrategyOrigin {
437 if (this.origin instanceof CdkOverlayOrigin) {
438 return this.origin.elementRef;
439 } else {
440 return this.origin;
441 }
442 }
443
444 private _getOriginElement(): Element | null {
445 if (this.origin instanceof CdkOverlayOrigin) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected