Attempting to modify a $scope variable:
Example:
$scope.variable_1
$scope.variable_2
...
Desired way of updating it:
for (i=0; i<2; i++) {
$scope.variable_$i = 1;
}
Wanting to access "$scope.variable_1" using the "i" index in each loop.
Any suggestions on how to achieve this? Appreciate your help.