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

Method ngOnDestroy

src/material/sort/sort-header.ts:162–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 ngOnDestroy() {
163 this._focusMonitor.stopMonitoring(this._elementRef);
164 this._sort.deregister(this);
165 this._renderChanges?.unsubscribe();
166
167 if (this._sortButton) {
168 this._ariaDescriber?.removeDescription(this._sortButton, this._sortActionDescription);
169 }
170 }
171
172 /** Triggers the sort on this sort header and removes the indicator hint. */
173 _toggleOnInteraction() {

Callers

nothing calls this directly

Calls 3

removeDescriptionMethod · 0.80
stopMonitoringMethod · 0.45
deregisterMethod · 0.45

Tested by

no test coverage detected