I have a problem in angular.js foreach loop.I have a console message console.log('course data',response.data); whose output given below.
course data [Object, Object, Object]
0: Objectcourse_name: "Master of computer
1: Objectcourse_name: "Bachelor of Technology"
2: Objectcourse_name: "Master in Technology"
length: 3__proto__: Array[0]
i have some code for angular foreach loop which is given below.
angular.forEach(response.data, function(value, key){
console.log(key + ': ' + value);
});
but here i am getting the following output of the console message given inside the code.
0: [object Object]
1: [object Object]
2: [object Object]
I am not getting the key name as well as value.Please help me to resolve this issue.