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

Function constructor

src/material/menu/menu-trigger-base.ts:156–159  ·  view source on GitHub ↗
(private readonly _canHaveBackdrop: boolean)

Source from the content-addressed store, hash-verified

154 protected abstract _getOutsideClickStream(overlayRef: OverlayRef): Observable<unknown>;
155
156 constructor(private readonly _canHaveBackdrop: boolean) {
157 const parentMenu = inject<MatMenuPanel>(MAT_MENU_PANEL, {optional: true});
158 this._parentMaterialMenu = parentMenu instanceof MatMenu ? parentMenu : undefined;
159 }
160
161 ngOnDestroy() {
162 if (this._menu && this._ownsMenu(this._menu)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected