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