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

Method ngOnDestroy

src/cdk/overlay/overlay-container.ts:30–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 protected _styleLoader = inject(_CdkPrivateStyleLoader);
29
30 ngOnDestroy() {
31 this._containerElement?.remove();
32 }
33
34 /**
35 * This method returns the overlay container element. It will lazily

Callers 4

cleanupFunction · 0.45
overlay.spec.tsFile · 0.45

Calls 1

removeMethod · 0.65

Tested by 1

cleanupFunction · 0.36