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

Method constructor

src/cdk/overlay/overlay-ref.ts:78–98  ·  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

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

Callers

nothing calls this directly

Calls 1

attachMethod · 0.65

Tested by

no test coverage detected