From 6161ec62273a4455da88530633af79b93cdc387f Mon Sep 17 00:00:00 2001 From: Sergey Vakhramov Date: Mon, 25 Oct 2021 03:31:10 +0500 Subject: [PATCH] fix(cdk/portal): write generic type for TemplateRef in the Template Portal code example (#23818) (cherry picked from commit 2e2fcc888d029f8649ea8b32eabbd8d62963d4ec) --- src/cdk/portal/portal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/portal/portal.md b/src/cdk/portal/portal.md index 4e375b4640ca..a5919ae7afe4 100644 --- a/src/cdk/portal/portal.md +++ b/src/cdk/portal/portal.md @@ -70,7 +70,7 @@ Usage: ``` ```ts -@ViewChild('templatePortalContent') templatePortalContent: TemplateRef; +@ViewChild('templatePortalContent') templatePortalContent: TemplateRef; ngAfterViewInit() { this.templatePortal = new TemplatePortal(