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

Method ngOnDestroy

src/material/button/button-base.ts:178–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 }
177
178 ngOnDestroy() {
179 this._cleanupClick?.();
180 this._focusMonitor.stopMonitoring(this._elementRef);
181 this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);
182 }
183
184 /** Focuses the button. */
185 focus(origin: FocusOrigin = 'program', options?: FocusOptions): void {

Callers

nothing calls this directly

Calls 2

destroyRippleMethod · 0.80
stopMonitoringMethod · 0.45

Tested by

no test coverage detected