track cho Angular biết item nào là cùng một entity khi list thay đổi, giúp reuse DOM/component instance thay vì destroy/recreate sai cách.
Ví dụ đúng với dữ liệu có id:
html
@for (user of users(); track user.id) {
<app-user-row [user]="user" />
}Với list tĩnh có thể track item; hạn chế dùng index nếu list có sort/filter/insert.
Sai track thường gây mất focus input, reset child state hoặc animation bị giật.