This is a migrated thread and some comments may be shown as answers.

instance of stepper component is undefined

1 Answer 207 Views
Forms
This is a migrated thread and some comments may be shown as answers.
Sinead
Top achievements
Rank 1
Sinead asked on 04 Dec 2020, 12:20 PM

Hello,

 

I'm following your stackblitz example:

https://stackblitz.com/run/?file=app%2Fapp.component.ts  

of a stepper form but when I click the next button it is saying my stepper is undefined, why is this?

 

public next(): void {
        if (this.currentGroup.valid && this.currentStep !== this.steps.length) {
            this.currentStep += 1;
            return;
        }
        this.currentGroup.markAllAsTouched();
        this.stepper.validateSteps(); //this showing as undefined
    }

 

Thanks

Sinead

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 08 Dec 2020, 07:05 AM

Hi Sinead,

Unfortunately, the StackBlitz link that was shared has an incorrect URL. Please could you fork the example, or send us the documentation article which was referenced. Thank you in advance.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Forms
Asked by
Sinead
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or