Skip to content

Commit

Permalink
fix(cdk/portal): write generic type for TemplateRef in the Template P…
Browse files Browse the repository at this point in the history
…ortal code example (#23818)

(cherry picked from commit 2e2fcc8)
  • Loading branch information
Sergey Vakhramov authored and wagnermaciel committed Oct 24, 2021
1 parent 8e24b81 commit 6161ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/portal/portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Usage:
```

```ts
@ViewChild('templatePortalContent') templatePortalContent: TemplateRef<unknow>;
@ViewChild('templatePortalContent') templatePortalContent: TemplateRef<unknown>;

ngAfterViewInit() {
this.templatePortal = new TemplatePortal(
Expand Down

0 comments on commit 6161ec6

Please sign in to comment.