I am working on creating a function that will search my scope for the value of status and return true if it matches 1.
Below is the array I am using for this task:
"review": {
"currentStep": 7,
"stepA": {
"status": 0,
},
"stepB": {
"status": 1,
"id": 1,
"url": "http://placehold.it/2000x200"
},
"stepB": {
"status": 0,
},
}
Currently, I have a function defined as follows:
$scope.checkStatus = function(){}