()
| 51 | private _elementScrolled = new Subject<Event>(); |
| 52 | |
| 53 | ngOnInit() { |
| 54 | this._cleanupScroll = this.ngZone.runOutsideAngular(() => |
| 55 | this._renderer.listen(this._scrollElement, 'scroll', event => |
| 56 | this._elementScrolled.next(event), |
| 57 | ), |
| 58 | ); |
| 59 | this.scrollDispatcher.register(this); |
| 60 | } |
| 61 | |
| 62 | ngOnDestroy() { |
| 63 | this._cleanupScroll?.(); |