Change step number to a mat-icon in an Angular Material Stepper
问题 I want to create an Angular Material stepper, but instead of a number inside the bubble I want to use mat-icons, how should I do this? 回答1: You can use matStepperIcon to override the icon. <mat-horizontal-stepper> <mat-step label="Step 1" state="minus"> <p>Minus</p> <div> <button mat-button matStepperNext>Next</button> </div> </mat-step> <mat-step label="Step 2" state="plus"> <p>Plus</p> <div> <button mat-button matStepperNext>Next</button> </div> </mat-step> <ng-template matStepperIcon=