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

Method ngOnDestroy

src/material/chips/chip.ts:300–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 }
299
300 ngOnDestroy() {
301 this.destroyed.emit({chip: this});
302 this.destroyed.complete();
303 this._focusMonitor.stopMonitoring(this._elementRef);
304 this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);
305 this._actionChanges?.unsubscribe();
306 }
307
308 /**
309 * Allows for programmatic removal of the chip.

Callers

nothing calls this directly

Calls 2

destroyRippleMethod · 0.80
stopMonitoringMethod · 0.45

Tested by

no test coverage detected