I have a function that is assigned to a variable. I then assign this variable to $scope
with the hope that it will call the function. But it doesn't work:
var func = myFunction("argument");
$scope.func;
I also tried:
var func = myFunction("argument");
$scope[func];
Is there a way I can get this to work?