Here is a code snippet for your consideration:
$scope.delete=function(){
foo('x',3);
};
How can we improve the clarity of this code snippet when the callback function contains only one line that calls another function? It's important to note that writing $scope.delete=foo('x',3)
is not an option.