I have an external json with a list of names. Something like
{id:1,name:'AAA',age:22},{id:2,name:'AAA',age:100}
I have one of this with an error. I know the right ID. I can't edit the original data.
So, i would like to update the right age in the json before print all data with ng-repat, if ID = 2
How can i update the array with angular?
Loop.. Condition.. Update Object