如何使用角 Material 删除 mat-step-icon 中的图标。
我在下面试过:
<ng-template matStepperIcon="edit"></ng-template>
<ng-template matStepperIcon="done"></ng-template>
这适用于编辑和完成状态。也想更改默认状态。不知道该取什么名字。
有人可以帮忙吗?
谢谢
最佳答案
这是来自 GitHub issue 的简单解决方法
@ViewChild(MatHorizontalStepper) stepper: MatHorizontalStepper;
ngAfterViewInit() {
this.stepper._getIndicatorType = () => 'number';
}
关于angular-material - 角 Material 步进器删除图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54575770/