在用ng build --prod打包时报错
ERROR in src\app\user\change-phonenext\change-phonenext.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
}