Code
angular.forEach(values, function($http, $scope)Code
{Code
this is my loopCode
})Code
module.factory('userService',Code
function(){Code
here i want to pass that looping Scope variableCode
});angular.forEach(values, function($http, $scope){ this is my loop})module.factory('userService', function(){ here i want to pass that looping Scope variable });Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Midhun TpRank #388 · 6.5K reputationPosted Oct 12, 2016, 4:02 AM EDT