I'm currently facing an issue with assigning two actions to a single button. When I click on the image, it changes as expected. However, the action only triggers when clicking on the image itself and not on the button. Any thoughts on how I can modify the code so that clicking the button will also change the image and trigger the action?
Below is the code snippet:
<a href="" class="btn btn-gray">
<img src="images/icons/full.png" alt="" ng-click="candidates.setTableType(candidates.tableTypes.ADVANCED)"
ng-show="candidates.selectedTableType == candidates.tableTypes.SIMPLE">
<img src="images/icons/full-hide.png" alt="" ng-click="candidates.setTableType(candidates.tableTypes.SIMPLE)"
ng-show="candidates.selectedTableType == candidates.tableTypes.ADVANCED">
</a>
Appreciate any input, thank you!