I'm facing an issue with an anchor tag that I've styled as a download button using Bootstrap's CSS. The problem is even though I have the ng-disabled
attribute in the tag, which visually disables the button, it can still be clicked. Here's the code snippet:
<a class="btn btn-primary pull-right download-button" target="_self" href="/download" ng-disabled="!dlAvailable">Download</a>
The link href="/download"
changes based on certain variables, and I must use target="_self"
to prevent page redirection. Is there an alternative way to disable the anchor tag from being clicked while maintaining its disabled appearance?