Hi,
Can anyone describe what the 'track' property in a @for block technical exactly do?
What happens in this example when my list items has the following structure?
[
{ label: 'Label 1', value:'label1' },
{ label: 'Label 2', value:'label2' }
]
@for (item of items; track item)
In my mind this is not a good idea because item is not an unique identifier, right?
What would be the best solution for this example?