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
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +