Struggling with assigning a scope object to a JavaScript variable in order to make some minor adjustments before sending it to my API. Surprisingly, any modifications made to the JavaScript variable end up changing the original scope object.
var recruitingCallListOutput = $scope.RecrutingCallingList.Recruit;
// making changes to recruitingCallListOutput
Unfortunately, these alterations are still affecting the scope object, which is definitely not what I intended. It seems like there's something about AngularJS that I'm not quite getting. Is there a way to extract the data and detach it from the scope?