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