Currently, I am faced with the task of searching through a JSON output in my code to locate a specific string (for instance 'name_col_lbl') and then extracting its corresponding value ('Name' in this example) for AngularJS to display in the view.
$scope.globalContent = [
{"id":"1","module":"student_reg","item":"name_col_lbl","value":"Name"},
{"id":"2","module":"student_reg","item":"bday_col_lbl","value":"Birthdate"}
]
angular.forEach($scope.globalContent, function(el){
$scope.nameLbl = el ***Here is where I'm struggling to extract the desired value***;
$scope.bdayLbl= el ***This is another spot where I need to retrieve the expected value***;
});
Despite my efforts, I have not yet found an efficient solution for this dilemma. Your assistance is greatly appreciated!