Angular Material Stepper下一步显示create而不是1 [英] Angular material stepper next step showing create instead of 1

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

问题描述

我正在使用步进器,我想禁用下一步,直到所有填充物都应填充为止,因此我将线性化为true html文件

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",您需要添加google material字体图标链接:

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">

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

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