Hossein Akbarzadeh Hossein Akbarzadeh - 11 months ago 66
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 Source

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">