From d21dbe37748bf804048b11bb7fc1295e27872669 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 14 Mar 2019 19:55:43 +0100 Subject: [PATCH] fix(stepper): content not being rendered out initially with ivy Fixes the stepper's content not being shown on the first render with Ivy, because we assume that the template with be present on init. --- src/cdk/stepper/stepper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/stepper/stepper.ts b/src/cdk/stepper/stepper.ts index 764d44a992b7..862a30a93044 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -121,7 +121,7 @@ export class CdkStep implements OnChanges { @ContentChild(CdkStepLabel) stepLabel: CdkStepLabel; /** Template for step content. */ - @ViewChild(TemplateRef) content: TemplateRef; + @ViewChild(TemplateRef, {static: true}) content: TemplateRef; /** The top level abstract control of the step. */ @Input() stepControl: FormControlLike;