I have an a element like this
<a class='btn' ng-click="alert('clicked')"></a>
in js
$scope.alert=(item)=>{alert(item)};
I had tested use ng-disabled but dose not work.
this is my html
this is my directive
I have many a element in my project so I want to write a directive like ng-disable how to write it?