<ng-container *ngFor="let obj of List">
<mat-form-field ngDefaultControl class="form-field" appearance="outline">
<input
matInput
type="number"
placeholder="0"
[(ngModel)]="obj.value"
onfocus="this.select()""
/>
</mat-form-field>
</ng-container>
// I am trying to modify the background color of the input element if the value changed in it.
here is list array of object
and just use
[ngStyle]to place classand
redis class name in[ngClass]