can i use string variable in angular.forEach() loop like this:
var variable= "keyname";
angular.forEach($scope.arrCategory[0].variable,function(k,d){
//alert(k);
angular.forEach(k,function(kk, dd){
alert(dd);
});
});
if it is wrong how should i use this variable in loop?