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

Method ngOnDestroy

src/material/form-field/form-field.ts:419–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417 }
418
419 ngOnDestroy() {
420 this._outlineLabelOffsetResizeObserver?.disconnect();
421 this._stateChanges?.unsubscribe();
422 this._valueChanges?.unsubscribe();
423 this._describedByChanges?.unsubscribe();
424 this._destroyed.next();
425 this._destroyed.complete();
426 }
427
428 /**
429 * Gets the id of the label element. If no label is present, returns `null`.

Callers

nothing calls this directly

Calls 2

disconnectMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected