Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

[AngularJS] How to integrate angular and jquery with each other ? #4

Open
mahtabpirzadi opened this issue Dec 19, 2016 · 1 comment

Comments

@mahtabpirzadi
Copy link

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;
}
});
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@mahtabpirzadi and others