Translation :
I have HTML code with ng-click :
<div ng-repeat="friend in friends"> <div ng-click="friend.blocked = true"></div> </div> How do I replace it with:
ng-click="get()" and perform this operation in the get () function:
$scope.get = function (){ friend.blocked = true } Original (Original):
I have HTML code with ng-click :
<div ng-repeat="friend in friends"> <div ng-click="friend.blocked = true"></div> </div> How to replace this entry on:
ng-click="get()" get ():
$scope.get = function (){ friend.blocked = true }