Hello people,

I have this html Code

<a href="javascript:void(0)" proid="{{p.ProductID}}" 
ng-click="addtocartRelatedProduct(p.ProductID, 1)" class="cart"></a>
wrapped inside a Carousel.

And my js is like this

 function addRelatedProduct(obj){
 var id = $(obj).attr("proid");
alert(id);
}

Issue i m getting is ng-click is not working and not hitting 
addRelatedProduct function in js. It is hitting function only for first 
anchor tag only. 
Any solutions or suggestions please?
Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to