I have a service that retrieves a JSON from an url, I use ng-repeat to show values in a list.
My JSON looks like this:
[
{"iconuser":"livingroom1","class":"w5","status":"0"},
{"iconuser":"meetingroom1","class":"w4","status":"1"}
]
How do I replace some values of that object.
example:
status = 0 should be status = OFF
status = 1 should be status = ON