I am facing an issue on my website using ui-router. I have a table with ng-click set on the cells, but there are links inside the cells as well. My goal is to disable the ng-click when the link is clicked.
<div ng-click="click()" style="background: #d3d3d3">
<a ui-sref="about">go to about page</a>
</div>
When the user clicks on the link to go to the about page, I do not want the click function to be called. You can see an example here: http://plnkr.co/edit/kE9CZYcYu1OPA9S0K3Jk?p=preview
Although this example uses a div instead of a table like my actual site, it demonstrates the same behavior. I have attempted to add
ng-click="$event.preventDefault()"
without success.
If anyone has advice or solutions, I would greatly appreciate it. Thank you!