角材料步进器下一步显示创建而不是 1 [英] Angular material stepper next step showing create instead of 1

查看:18
本文介绍了角材料步进器下一步显示创建而不是 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究步进器,我想禁用下一步,直到所有填充都应填充为止,因此我将线性设置为 truehtml文件

I am working on stepper, i want to disable next step until all filled should be filled so i made linear to true in html file

<mat-horizontal-stepper [linear]="true" #stepper>
        <mat-step [stepControl]="firstFormGroup">
          <form [formGroup]="firstFormGroup">

它工作正常,但每当我进入下一步时,1"变成cre"在检查时我得到了

it's working fine but whenever i am going to next step, "1" becomes "cre" on inspecting i got

我没有在我的代码中的任何地方创建它来自 mat-icon

i didn't user create anywhere in my code it's coming from mat-icon

推荐答案

您可以在 mat-step 上设置 [completed]="false" 并且您将只有数字而不是图标.

you can set [completed]="false" on mat-step and you will have only numbers instead of icons.

或者用钢笔图标替换"create"这个词,你需要添加谷歌材料字体图标链接:

or to replace the word "create" with the pen icon you need to add the google material font icon link:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">

这篇关于角材料步进器下一步显示创建而不是 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆