The problem is with your action
function:
- You declared
action
as a function which returns an object of function properties. - It seems like you wanted to create it as
IIFE
but you missed()
at the end. - Why do you need to create it as
IIEF
anyway? - Inside
ngClick
You try to refer toaction
as an object:actions.
- If you were to write
actions().
then it would work but that's not needed (see solution). - Angular.js (
$parse
) ignores your mistake without telling you anything. - Read my answer to understand why angularjs ng-click silently eats errors
Solution:
$scope.actions = {
move: function(index, file) {
console.log(arguments);
}
}