I have a array in my controller Which has assign multiple keys with the value i need to access these values in controller so that i can save these data to database
Array is given below:-
$scope.Notes['surfacedefault-1'] = { value: "xyz" };
$scope.Notes['surfacedefault-2'] = { value: "we" };
$scope.Notes['surfacedefault-3'] = { value: "123" };
$scope.Notes['surfacedefault-4'] = { value: "red" };
$scope.Notes['surfacedefault-5'] = { value: "blue" };
Please suggest me to access their value in controller using foreach loop