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

Method ngOnDestroy

src/material/dialog/dialog.ts:224–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222 }
223
224 ngOnDestroy() {
225 // Only close the dialogs at this level on destroy
226 // since the parent service may still be active.
227 this._closeDialogs(this._openDialogsAtThisLevel);
228 this._afterAllClosedAtThisLevel.complete();
229 this._afterOpenedAtThisLevel.complete();
230 }
231
232 private _closeDialogs(dialogs: MatDialogRef<any>[]) {
233 let i = dialogs.length;

Callers 1

dialog.spec.tsFile · 0.45

Calls 1

_closeDialogsMethod · 0.95

Tested by

no test coverage detected