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

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

@mahtabpirzadi

Description

@mahtabpirzadi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions