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

Method ngOnDestroy

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

Source from the content-addressed store, hash-verified

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

Callers 1

dialog.spec.tsFile · 0.45

Calls 1

_closeDialogsMethod · 0.95

Tested by

no test coverage detected