diff --git a/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/cdk-custom-stepper-without-form-example.ts b/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/cdk-custom-stepper-without-form-example.ts index 906fe521185a..608ea0a295e8 100644 --- a/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/cdk-custom-stepper-without-form-example.ts +++ b/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/cdk-custom-stepper-without-form-example.ts @@ -14,10 +14,10 @@ export class CdkCustomStepperWithoutFormExample {} selector: 'example-custom-stepper', templateUrl: './example-custom-stepper.html', styleUrls: ['./example-custom-stepper.css'], - providers: [{ provide: CdkStepper, useExisting: CustomStepper }] + providers: [{provide: CdkStepper, useExisting: CustomStepper}] }) export class CustomStepper extends CdkStepper { - onClick(index: number): void { + selectStepByIndex(index: number): void { this.selectedIndex = index; } } diff --git a/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/example-custom-stepper.html b/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/example-custom-stepper.html index 0f956035ae8a..f3cb23972f5d 100644 --- a/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/example-custom-stepper.html +++ b/src/components-examples/cdk/stepper/cdk-custom-stepper-without-form/example-custom-stepper.html @@ -3,17 +3,15 @@