From 7a1c5edbe849ba311d661ae056625c1a40353194 Mon Sep 17 00:00:00 2001 From: Peter Blazejewicz Date: Sat, 14 Sep 2019 15:35:20 +0200 Subject: [PATCH] docs(dialog): update dialog example Replace usage of deprecated api with new one --- src/dev-app/dialog/dialog-demo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev-app/dialog/dialog-demo.ts b/src/dev-app/dialog/dialog-demo.ts index 0a49bba8ab63..017c34cb957c 100644 --- a/src/dev-app/dialog/dialog-demo.ts +++ b/src/dev-app/dialog/dialog-demo.ts @@ -53,7 +53,7 @@ export class DialogDemo { // Possible useful example for the open and closeAll events. // Adding a class to the body if a dialog opens and // removing it after all open dialogs are closed - dialog.afterOpen.subscribe(() => { + dialog.afterOpened.subscribe(() => { if (!doc.body.classList.contains('no-scroll')) { doc.body.classList.add('no-scroll'); }