Hi!
Thank you for replies.
@Pawel Kozlowski
I see the alternative using $scope.sourceList[1]; In fact this way we have the save Javascript object an therforre the same hashkey.
Using this 'trick', what about loading objects asynchronously? In fact when should I loop on the source list to override the object into the model?
In the example, it could be the case for $scope.selectedItem and $scope.sourceList are loaded using a ressource for example.
For now I think I will use normal Keys (first example) and if I need more information based on the IDs, I will create a function that give me the 'source object' from the Array based on the ID. For this if you have recommendation to manage kind of HashMap in Javascript :-)
@Eddie Huang
I see your issue. It seems similar.
I'll try to investigate more on this issue...
Thank you for help,
Max