Ng-click and onclick

<a class="tab-item" href="#" onclick="window.plugins.socialsharing.share('#Appname. Download now and share the experience!',null,null,'')"><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.


My bad. I used



 $scope.postSocial = function (link){
 window.plugins.socialsharing.share('#Appname. Download now and share the   experience!',null,null,'')