I have an attribute that is a function and I parse that attribute, but when I call the function, the function doesn't include any parameters.
// main ctrl
$scope.fn = function (attr) {
console.log(attr);
};
// directive
$attrs.$observe('vFn', function (f) {
$scope.fn = $parse(f);
});
$scope.fn($scope, {attribute: 'This is not passed'});
<div v-fn="fn()"