79643507

Date: 2025-05-29 08:00:04
Score: 1.5
Natty:
Report link

*ngFor="let plan of d?.data; let j = index; trackBy: trackByPlan"

trackByPlan(index: number, plan: any): any {
  return plan?.id || index; // Use a unique identifier if available
} 
this gonna prevent angular to rerender the Dom thus no scrool jump
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mayank Sharma