I have an image that has an action associated with it (using ng-click):
<a href="#" ng-click="doSomething($event)">
<img src="myImage.png">
</a>
Under some circumstances, I would like it to be unclickable (and greyed out, but I can worry about that after). Essentially the equivalent of using ng-disabled/enabled (which won't work, since disabled isn't a property of anchor elements). Like this (substituting a more complicated expression for the "true"):
<a href="#" ng-click="doSomething($event)" ng-disabled="true">
<img src="myImage.png">
</a>
Is there any way to do this?