MCPcopy Index your code
hub / github.com/angular/components / constructor

Method constructor

src/cdk/overlay/overlay-ref.ts:71–91  ·  view source on GitHub ↗
(
    private _portalOutlet: PortalOutlet,
    private _host: HTMLElement,
    private _pane: HTMLElement,
    private _config: ImmutableObject<OverlayConfig>,
    private _ngZone: NgZone,
    private _keyboardDispatcher: OverlayKeyboardDispatcher,
    private _document: Document,
    private _location: Location,
    private _outsideClickDispatcher: OverlayOutsideClickDispatcher,
    private _animationsDisabled = false,
    private _injector: EnvironmentInjector,
    private _renderer: Renderer2,
  )

Source from the content-addressed store, hash-verified

69 private _afterNextRenderRef: AfterRenderRef | undefined;
70
71 constructor(
72 private _portalOutlet: PortalOutlet,
73 private _host: HTMLElement,
74 private _pane: HTMLElement,
75 private _config: ImmutableObject<OverlayConfig>,
76 private _ngZone: NgZone,
77 private _keyboardDispatcher: OverlayKeyboardDispatcher,
78 private _document: Document,
79 private _location: Location,
80 private _outsideClickDispatcher: OverlayOutsideClickDispatcher,
81 private _animationsDisabled = false,
82 private _injector: EnvironmentInjector,
83 private _renderer: Renderer2,
84 ) {
85 if (_config.scrollStrategy) {
86 this._scrollStrategy = _config.scrollStrategy;
87 this._scrollStrategy.attach(this);
88 }
89
90 this._positionStrategy = _config.positionStrategy;
91 }
92
93 /** The overlay's HTML element */
94 get overlayElement(): HTMLElement {

Callers

nothing calls this directly

Calls 1

attachMethod · 0.65

Tested by

no test coverage detected