Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(ngReadonly): added note about input type checkbox and radio #14816

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/ng/directive/attrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@
*
* Sets the `readOnly` attribute on the element, if the expression inside `ngReadonly` is truthy.
*
* Note that `ngReadonly` does not work with input `type="radio"` and `type="checkbox"`,
* text based inputs works fine.
*
* A special directive is necessary because we cannot use interpolation inside the `readOnly`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
Expand Down