Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular material stepper remove icons

How to remove the icons in the mat-step-icon using angular material.

I tried below:

<ng-template matStepperIcon="edit"></ng-template>
<ng-template matStepperIcon="done"></ng-template>

this works for edit and done state. want to change the default state as well. dont know what is the name to give.

can anyone help please?

thanks

like image 899
Mukil Deepthi Avatar asked Feb 07 '19 14:02

Mukil Deepthi


1 Answers

Here is a simple workaround from the GitHub issue

@ViewChild(MatHorizontalStepper) stepper: MatHorizontalStepper;
ngAfterViewInit() {
    this.stepper._getIndicatorType = () => 'number';
}
like image 88
bahadrdsr Avatar answered Oct 22 '22 01:10

bahadrdsr