Can I pass an angularjs variable value to a Jquery element?


#1

How to pass an angularjs variable value (value.ProductDescription) to Jquery element (spec) ?

$(".newsblock3 .id").each(function(e,val){
var idPro = $(this).text();
var spec = $(val).closest("a").find("div#desc").text();
$.each($scope.Products, function(index, value) {
if (idPro == $scope.Products[index].PKEY) {
spec = value.ProductDescription;
return false;
}
});
});


#2

why it's complicated, are you tried to do it just angular ?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.