ng model value refreshes

Viewed 37

The value I am displaying if the value of ngModel but the thing is everytime I selct new date on the calendar or update the new date it refreshes the ngmodel and data took like 2-3 seconds before its show , want I want is just it should not blink like on the recording below , it show always display . Any idea guys that might help ?

the ngmodel value should not refresh if there are no value changes

#recording

enter image description here

#html code

 <td >
                    <div style="width:110px;"  fxLayout="row" fxLayoutAlign="center center">
                        <input 
                            (click)="openPicker(pickerTargetDate);" 
                            ([ngModel])="data.targetDate"
                            class="entitlements-body-picker-font"
                            (dateChange)="dateChange(targetDate')"
                            [matDatepicker]="pickerTargetDate">
                        <mat-datepicker #pickerTargetDate></mat-datepicker>
                        <mat-icon class="date-icon" (click)="openPicker(pickerTargetDate);">calendar_today
                        </mat-icon>
                    </div>

                </td>
0 Answers
Related