From be040080dbdd172b0b938015672619c2949408dc Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Tue, 11 Oct 2022 06:57:45 +1000 Subject: [PATCH] Mark modalService.openViewRef as deprecated (#3697) --- libs/angular/src/services/modal.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/angular/src/services/modal.service.ts b/libs/angular/src/services/modal.service.ts index 348e3f88c3..18afcbbea8 100644 --- a/libs/angular/src/services/modal.service.ts +++ b/libs/angular/src/services/modal.service.ts @@ -49,6 +49,11 @@ export class ModalService { return this.modalList[this.modalCount - 1]; } + /** + * @deprecated Use `dialogService.open` (in web) or `modalService.open` (in desktop/browser) instead. + * If replacing an existing call to this method, also remove any `@ViewChild` and `` associated with the + * existing usage. + */ async openViewRef( componentType: Type, viewContainerRef: ViewContainerRef,