How to calculate value from multiple inputs using angular reactive forms?
问题 I'm trying to calculate either discount percent or discount amount from list price using angular 6 reactive forms . form.component.html (simplified) ... <form [formGroup]="productForm"> <mat-form-field class="quat-width"> <span matPrefix>$ </span> <input matInput type="number" name="CostPrice" formControlName="CostPrice"> </mat-form-field> <mat-form-field class="quat-width"> <span matPrefix>$ </span> <input matInput type="number" name="ListPrice" formControlName="ListPrice"> </mat-form