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

Method ngOnDestroy

src/cdk/dialog/dialog-container.ts:156–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 }
155
156 ngOnDestroy() {
157 (this._focusTrapped as Subject<void>).complete();
158 this._isDestroyed = true;
159 this._restoreFocus();
160 }
161
162 /**
163 * Attach a ComponentPortal as content to this dialog container.

Callers

nothing calls this directly

Calls 1

_restoreFocusMethod · 0.95

Tested by

no test coverage detected