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

Method ngOnDestroy

src/cdk/scrolling/scrollable.ts:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 ngOnDestroy() {
63 this._cleanupScroll?.();
64 this._elementScrolled.complete();
65 this.scrollDispatcher.deregister(this);
66 this._destroyed.next();
67 this._destroyed.complete();
68 }
69
70 /** Returns observable that emits when a scroll event is fired on the host element. */
71 elementScrolled(): Observable<Event> {

Callers 1

Calls 2

deregisterMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected