Hossein Akbarzadeh Hossein Akbarzadeh - 1 month ago 11
AngularJS Question

why ng-disabled does not work?

This is my html tag:

<input class="editable-input" ng-model="ac.accesses.permision.alias" ng-disabled="true">


but input tag does not disable.

Answer

ng-disabled will work fine either if you missed out input type

Working Demo

  <input type="text" class="editable-input" ng-model="ac.accesses.permision.alias" ng-disabled="true">

Working Demo

   <input class="editable-input" ng-model="ac.accesses.permision.alias" ng-disabled="true">
Comments