I have a clickable div
and I would like to disable it in some cases.
<div id="div" routerLink="/url" class="module-dashboard"></div>
I have tried:
var div= <HTMLDivElement>document.getElementById("div");
div.disabled = true;
But "disabled" is not a property of HTMLDivElement
What I need is to avoid the routerLink
.
Is it possible to do it?