Cannot assign to 'total' because it is a constant or a read-only property
问题 I run ng build --prod in my project. That I found is this error: src\app\components\xxxx\xxxx.component.html(116,100): : Cannot assign to 'total' because it is a constant or a read-only property. In this line I have this code: <input formControlName="total" id="total" type="text" class="validate" [(ngModel)]="total"> I used [(ngModel)]="total" --> because I want the value to be saved even without modifying it. If I used [value]="total" this error doesn't exist, but my value doesn't saved If I