I'm new to AngularJS. I am writing a directive that takes in a function name (because this will change occasionally) and then I set it as the ng-click function in the template to call the function on the controller. However, it does not seem to be firing, I am sure I am doing something completely wrong so any help would be great!
I would like the
fire-fn="callThis($index)" in my directive,
to call the $scope.callThis on MyCtrl by getting injected into the template's html markup.
Code is here: http://plnkr.co/edit/epMfDwZILgJ5W9qIIPgr?p=preview
Thanks for the help!