So am using angular foreach as below
$scope.section = [{
"id": 1,
"name": "name1",
"value": "foo1"
},
{
"id": 2,
"name": "name 2",
"value": "foo2"
}]
angular.forEach(section, function(item, key) {
if(item.value) {
item.value = 'Some New value'
}
});
For some reason it doesnt work plus if I try to manipulate I get an error about duplicate value