I want to use disabled-ng with dynamic value returned from a function.
I have tried several ways but it is not working.
<textarea id="{{exercise.type}}" ng-disabled={{prova}}></textarea>
......
<textarea id="{{exercise.type}}" ng-disabled=prova></textarea>
......
<textarea id="{{exercise.type}}" ng-disabled=prova()></textarea>
with this javascript function
$scope.prova=function(e){
return true;
};