Is it possible to assign a regular JavaScript variable the current value of an Angular $scope variable without having their values binded together?
//$scope.var1 is set to a specific value, for example, 5
var v2 = $scope.var1;
//$scope.var1 is then updated to 7
I need v2
to remain as 5, and not change to 7.