The name of fruits are a
elements nested within a <div ng-repeat=".."></div>
. When this orange parent div
is clicked, some hidden text is shown. When the fruit name is clicked, it should become bold.
Problem: When the fruit name is clicked, it becomes bold AND the hidden text is revealed. How do we allow the fruit name to be bold without the hidden text being revealed?
I believe this involves preventing propogation of the click event from the a
to the div
, how can we do this?
Jsfiddle: http://jsfiddle.net/tf4b63km/
Before clicking on fruit name
After clicking on fruit name