0

I have a ng-click defined as an attribute for an anchor, but I also have a directive (ink-button) attached to it.

<a href="javascript:void(0)" class="button button--pink" 
ng-click="vm.onSubmit()" ink-button>

The ng-click is for handling a specific function, while the directive is used pure for a generic animation for all the buttons. Inside my directive (inkButton) I have a click handler. And when I click the button, only the eventhandler in the directive is responding, and the ng-click is being ignored. How to fix this?

Barry
  • 75
  • 5

0 Answers0