ngDisable directive

The ngDisable directive can disable elements based on the Boolean value of an expression. This directive is useful with validation techniques.

In this next example, we will disable the button when the variable is true:
<button ng-click="park(car)" ng-disabled="!car.plate">Park</button>
Related Tutorial