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?

3
  • 1
    Please provide the code of your directive . Commented Feb 19, 2016 at 14:03
  • stackoverflow.com/questions/19512572/… Commented Feb 19, 2016 at 14:05
  • Does the directive swallow the click event with something like $event.stopPropagation()? Commented Feb 19, 2016 at 15:16

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.