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

Method ngOnDestroy

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

Source from the content-addressed store, hash-verified

314 }
315
316 ngOnDestroy() {
317 this.destroyed.emit({chip: this});
318 this.destroyed.complete();
319 this._focusMonitor.stopMonitoring(this._elementRef);
320 this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);
321 this._actionChanges?.unsubscribe();
322 }
323
324 /**
325 * 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