How to extend or add data to cdk-steps in Angular?

Viewed 202

I'm new to Angular and the CDK. I try to implement my own cdk-stepper, e.g. my-stepper. I want to give each cdk-step a couple of properties that I can access in my-stepper, for example text for a next-step-button. How can that be done? Can I make a directive to add to the cdk-steps?

<my-stepper linear>
        <cdk-step [completed]="stepCompleted" nextButtonText="I want to use this in my-stepper">
            <my-control></ny-control>
        </cdk-step>
</app-gus-stepper>
0 Answers
Related