報錯地點:
<input
nz-input
PlaceHolder="{{'請輸入' | translate}}"
[(ngModel)]="archiveData.fcstratio_min"
(ngModelChange)="formatNumberRgx($event,'min')"
class="input-small" >
更改為:
<input
nz-input
attr.placeHolder="{{'請輸入' | translate}}"
[(ngModel)]="archiveData.fcstratio_min"
(ngModelChange)="formatNumberRgx($event,'min')"
class="input-small" >
錯誤原因是因為placeholder不是该元素默认有的属性,所以在綁定時需要加上attr對象