What I am trying to do is that when the user enters, based on their role, enable or disable anchor element. Try several ways:
document.getElementById('myBtn').disabled = true;
This shows me: The property 'disabled' does not exist in type 'HTMLElement'.
Researching try with:
(document.getElementById('myBtn') as any).disabled = true;
It doesn't show me any errors but it doesn't work either.
And with the property of angular [disabled] it shows me: Can't bind to 'disabled' since it isn't a known property of 'a'.
Some alternative? regards