Latest web development tutorials

AngularJS ng-readonly command

AngularJS Reference Manual AngularJS Reference Manual


AngularJS examples

Set the input box is read-only:

Readonly: <input type = "checkbox " ng-model = "all">
<Br>
<Input type = "text" ng -readonly = "all">

try it"

Definition and Usage

ng-readonly command to set the form field (input or textarea) of readonly attributes.

If the expressionng-readonly property returns true if the form field is read-only.


grammar

<Input ng-readonly = "expression "> </ input>

<Input> <textarea> element supports the instruction.


Parameter Value

value description
expression Expression returns true if the form field is read-only.

AngularJS Reference Manual AngularJS Reference Manual