0
I realized that for some reason, a property called $$hasKey was added to my array items. Each item has this property with different values.
Example:
[0: {$$hasKey: 'Object1',
uf: 'ES'},
1: {$$hasKey: 'Object2',
uf: 'SP'}
]
In this example is an acronym list of Brazilian states, the object I load from the server does not have the property $$hasKey
, and my array, come without this property up to my controller
.
When debugging I could not find the time when this property is added to my items array.
I want to understand:
- What is this
- What good is
- If you can remove
In my design: The property is only one way that the angular has found to be able to identify which item is which, because when you render an array of information on the screen, the front end has to have some way of being able to identify what is actually the element that is rendered and how it differs from other similar elements, this also helps to synchronise the already rendered information with some other new information to be rendered or removed. There must be a way you can customize the KEY for any of your preferences.
– Caio Koiti