Ng-click and onclick


#1
<a class="tab-item" href="#" onclick="window.plugins.socialsharing.share('#Appname. Download now and share the experience!',null,null,'http://bu.mysite.com/bu/title/')"><i class="icon ion-share"></i>Share</a>

This thing works, and popups the share to social plugin. I want to put dynamic link such as {{data.url}} in ng-repeat, for each item in a list. So when i use {{data.url}}, it does not work. Any advise or tip to try.


#2

My bad. I used

ng-click="postSocial({{data.url}})"

and

 $scope.postSocial = function (link){
 window.plugins.socialsharing.share('#Appname. Download now and share the   experience!',null,null,'http://bu.mysite.com/bu/title/')
 };