()
| 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; |
no test coverage detected