I\'ve created a directive in Angular that looks like this:
angular.module(\'msfApp\')
.directive(\'listitem\', function () {
return {
This is happening because you are using isolated scopes in the directive using scope: { 'item': '=' } which creates a new scope so your ng-click is not able to bind to controller function.
Kindly refer to below link to call parent function using ng-click
calling method of parent controller from a directive in AngularJS