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

Method ngOnDestroy

src/material/menu/menu.ts:329–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327 }
328
329 ngOnDestroy() {
330 this._keyManager?.destroy();
331 this._directDescendantItems.destroy();
332 this.closed.complete();
333 this._firstItemFocusRef?.destroy();
334 clearTimeout(this._exitFallbackTimeout);
335 }
336
337 /** Stream that emits whenever the hovered menu item changes. */
338 _hovered(): Observable<MatMenuItem> {

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected