I am trying to use eval
from javascript to call a function in angular.js. I have its name in string
I used the following:
$scope.$eval("$scope.drawFactory.draw")({},$scope.paint);
But it's showing
TypeError: $scope.$eval(...) is not a function
What is the proper way to do this?