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

Method ngOnDestroy

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

Source from the content-addressed store, hash-verified

111 }
112
113 ngOnDestroy() {
114 if (this._focusMonitor) {
115 this._focusMonitor.stopMonitoring(this._elementRef);
116 }
117
118 if (this._parentMenu && this._parentMenu.removeItem) {
119 this._parentMenu.removeItem(this);
120 }
121
122 this._hovered.complete();
123 this._focused.complete();
124 }
125
126 /** Used to set the `tabindex`. */
127 _getTabIndex(): string {

Callers

nothing calls this directly

Calls 2

stopMonitoringMethod · 0.45
removeItemMethod · 0.45

Tested by

no test coverage detected