MatHorizontalStepper stepControl with template driven forms
问题 Is there any way to use [stepControl] error matcher with template driven forms? The docs just teach about an AbstractControl instance, which apparently forces the use of a reactiveForm. I've tried to use [stepControl]="myNgForm" and [linear]="true" to validate the steps but the stepper just ignores it. I appreciate any help. Thanks! 回答1: The step control seems to work with "form.control". Here an example with one form per step and template driven forms. <mat-vertical-stepper [linear]="true">