In my project, I have implemented two drag and drop lists using Angular. The purpose of these lists is to transfer JSON objects from one list to another, but not the other way around. Everything works smoothly in terms of transferring objects between the lists. However, I am facing an issue when trying to generate unique IDs for the transferred objects.
Currently, I have tried using a counter outside of the array to generate IDs. But this approach seems to be causing the ID of the transferred object to become null initially, and only then does it start incrementing.
Does anyone have any suggestions on how to resolve this issue?