From 29511ff8ffcfb063ce00b9ec8b7320519209d80d Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Mon, 21 Jan 2019 20:32:05 +0100 Subject: [PATCH 1/3] Update creating-a-custom-stepper-using-the-cdk-stepper.md Simplified step content projection --- ...eating-a-custom-stepper-using-the-cdk-stepper.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/guides/creating-a-custom-stepper-using-the-cdk-stepper.md b/guides/creating-a-custom-stepper-using-the-cdk-stepper.md index 11b55934f6fb..99d5ea93cc63 100644 --- a/guides/creating-a-custom-stepper-using-the-cdk-stepper.md +++ b/guides/creating-a-custom-stepper-using-the-cdk-stepper.md @@ -27,6 +27,9 @@ export class CustomStepperComponent extends CdkStepper { /** The index of the selected step. */ selectedIndex: number; + + /** The step that is selected. */ + selected: CdkStep; /** The list of step components that the stepper is holding. */ steps: QueryList; @@ -47,12 +50,10 @@ This is the HTML template of our custom stepper component:

Step {{selectedIndex + 1}}/{{steps.length}}

-
-
- - -
-
+
+ + +