I\'m trying to pass a callback function from a controller to a directive.
Here\'s the callback function code:
$scope.onImageSelect = function(image)
try to change the scope object to be like this
scope: { callback: '=' }
and it will work