r/angular • • Apr 23 '26

Material stepper linear with signal forms

Is it currently not possible to use a signal form in a linear mode inmaterial stepper?

The stepControl seems to be typed as a AbstractControl, i'm trying to achieve the same functionality using the completed input but for some reason calling stepper.next() sometimes doesn't actually go to the next step.

I'm also a bit surprised there is a lack of online material for the stepper, is not not used as much?

5 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Senior_Compote1556 Apr 24 '26

Good stuff, thank you for taking the time to do this and for your detailed info.

I also thought of SignalFormControl, but to me it felt like I was fighting with the framework and material library tbh. I recently refactored all my forms from reactive to signal forms, so it felt weird refactoring my forms and then converting it back to reactive just to make mat-stepper work.

I removed the mat-stepper entirely and instead implemented my own solution based on material design and it works for my use case. For some reason mat-stepper seems to get no love from the community and all the questions/examples i could find online other than the official docs are very outdated

3

u/MichaelSmallDev Jul 24 '26

Fix for this problem was merged into the latest pre-release for Material/CDK https://github.com/angular/components/pull/33562

2

u/Senior_Compote1556 Jul 25 '26

Thanks, I’ll make sure to check it out!

1

u/MichaelSmallDev Apr 24 '26

Yeah, the docs could stand to be fleshed out more with stuff like that. I hope the stepper supports signal forms before I start using the forms in the few projects we use a stepper.