| 173 | @Output() readonly indexFocused: EventEmitter<number> = new EventEmitter<number>(); |
| 174 | |
| 175 | constructor() { |
| 176 | // Bind the `mouseleave` event on the outside since it doesn't change anything in the view. |
| 177 | this._eventCleanups = this._ngZone.runOutsideAngular(() => [ |
| 178 | this._renderer.listen(this._elementRef.nativeElement, 'mouseleave', () => |
| 179 | this._stopInterval(), |
| 180 | ), |
| 181 | ]); |
| 182 | } |
| 183 | |
| 184 | /** Called when the user has selected an item via the keyboard. */ |
| 185 | protected abstract _itemSelected(event: KeyboardEvent): void; |