I used editable and completed options of matStep but they didn't work for me, so I've decided to simply use ngIf
<mat-step *ngIf="myCondition === true"> </mat-step>