()
| 102 | } |
| 103 | |
| 104 | ngAfterViewInit() { |
| 105 | if (this._focusMonitor) { |
| 106 | // Start monitoring the element, so it gets the appropriate focused classes. We want |
| 107 | // to show the focus style for menu items only when the focus was not caused by a |
| 108 | // mouse or touch interaction. |
| 109 | this._focusMonitor.monitor(this._elementRef, false); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | ngOnDestroy() { |
| 114 | if (this._focusMonitor) { |