I have a <div>
element which has another <div>
element as its child.
I added the ng-click
directive to the parent, and expected it not to be fired when clicking the child. However, it does.
<div class=outer ng-click=toggle()>
<div class=inner>You can click through me</div>
</div>
Why is it doing this, and how can I avoid it?
Here's a JSFiddle demonstrating the issue