I have one condition in the controller. If the condition returns true, then I need to disable all links and ng-clicks
How can we do: -
Controller : $scope.disableActions = true;
In HTML
<button type="button" ng-click="ignoreAndRedisplay()" ng-disabled="disableActions">OpenClick</button>
So, doing this, I have to write everywhere ng-disabled="disableActions", it will be redundant. How can we improve this for the nnumber of buttons and links?
source
share