I am currently facing a challenge with a reference issue in my JavaScript collection.
You can take a look at the plunker to see what I mean -> plunker
The problem arises when I execute this code snippet:
approverSteps[0].loadedApprovers.push({prop1: 'test'});
As a consequence, the loadedApprovers property of the second element in the approverSteps collection (approverSteps1) also gets updated. It seems to be a reference issue; do you have any suggestions on how to resolve it?
Thank you very much for your help in advance.