angular 9+how to disabled or enabled hyperlink code example
Example: make link disabled in angular
<a [class.disabled]="apiReturned ? null: true" [href]="apiReturned ? 'https://stackoverflow.com/users/9442497/ldb' : null" >Click Me!</a>
<a [class.disabled]="apiReturned ? null: true" [href]="apiReturned ? 'https://stackoverflow.com/users/9442497/ldb' : null" >Click Me!</a>