Edit in JSFiddle

var app = angular.module('myApp', []);
app.controller('myController', function ($scope) {
    $scope.numberA = 0;
    $scope.numberB = 0;
    $scope.numberC = 0;
    $scope.doStuff = function (numberA, numberB) {
        $scope.numberA = numberA;
        $scope.numberB = numberB;
        $scope.numberC = numberA * numberB;
    };
});
app.directive('myClicky', function () {
    return {
        scope: { myClickAction: '&' },
        template: '<a ng-click="myClickAction({foo:1000, bar: 9999})">Click Action</a>'
    };
});
<div ng-app="myApp" ng-controller="myController">
    <span my-clicky my-click-action="doStuff(bar, foo)"></span>
    <div>NumberA: {{numberA}}</div>
    <div>NumberB: {{numberB}}</div>
    <div>NumberC: {{numberC}}</div>
</div>