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

Method ngOnDestroy

src/material/menu/menu-item.ts:102–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 ngOnDestroy() {
103 if (this._focusMonitor) {
104 this._focusMonitor.stopMonitoring(this._elementRef);
105 }
106
107 if (this._parentMenu && this._parentMenu.removeItem) {
108 this._parentMenu.removeItem(this);
109 }
110
111 this._hovered.complete();
112 this._focused.complete();
113 }
114
115 /** Used to set the `tabindex`. */
116 _getTabIndex(): string {

Callers

nothing calls this directly

Calls 2

stopMonitoringMethod · 0.45
removeItemMethod · 0.45

Tested by

no test coverage detected