()
| 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 { |
nothing calls this directly
no test coverage detected