在用ng build --prod打包时报错

ERROR in src\app\user\change-phonenext\change-phonenext.component.html(14,31): : Expected 1 arguments, but got 0.

angular6打包时报错 ERROR in src\app\user.component.html(14,31): : Expected 1 arguments, but got 0

处理方法:查看函数是否传参

我的错误代码

ts文件

  modifyPhone(number) {
   //函数中没有用到number
  }

html文件

<div class="buttonGroup">
        <button class="signIn" (click)="modifyPhone()">确定</button>
    </div>
正确代码

ts文件

  modifyPhone() {
   //函数中没有用到number
  }

相关文章:

  • 2022-03-01
  • 2022-12-23
  • 2021-09-04
  • 2021-05-28
  • 2022-01-22
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-08-27
  • 2021-12-30
  • 2021-06-05
  • 2021-10-07
  • 2021-09-20
相关资源
相似解决方案