I understand that you can use track by expr
to specify how items are keyed in a ng-repeat
directive.
But without track by
, how does AngularJS identify items?
Could I control how objects are tracked by altering the object, without using track by
, for example?
From the docs:
If no tracking function is specified the ng-repeat associates elements by identity in the collection.
But this is not clear. What does "identity in the collection" mean?