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

Function ngOnDestroy

src/material/menu/menu-trigger-base.ts:161–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }
160
161 ngOnDestroy() {
162 if (this._menu && this._ownsMenu(this._menu)) {
163 PANELS_TO_TRIGGERS.delete(this._menu);
164 }
165
166 this._pendingRemoval?.unsubscribe();
167 this._menuCloseSubscription.unsubscribe();
168 this._closingActionsSubscription.unsubscribe();
169
170 if (this._overlayRef) {
171 this._overlayRef.dispose();
172 this._overlayRef = null;
173 }
174 }
175
176 /** Whether the menu is open. */
177 get menuOpen(): boolean {

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.65
disposeMethod · 0.65

Tested by

no test coverage detected