79610340

Date: 2025-05-07 10:43:23
Score: 0.5
Natty:
Report link

When relying on indices for event binding, You must use trackBy with *ngFor

in component ts file add:

trackByIndex(index: number, item: any): number {
  return index;
}

change this in html:

   <input [timeInput]="time" (changeTime)="onTimeChanging(arrayIndex, $event)" *ngFor="let time of timeArray; index as arrayIndex; trackBy: trackByIndex">
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Omprakash S