From e769fb0b8fbe7604ac28242fcaddfbe39260a94a 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 929a8fe83ec2..eceafc54b26c 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -122,7 +122,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: AbstractControl;