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

Commit c434bde

Browse files
committed
docs(ngReadonly): note input type restrictions
Closes #14816
1 parent aa8d783 commit c434bde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ng/directive/attrs.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,11 @@
230230
*
231231
* @description
232232
*
233-
* Sets the `readOnly` attribute on the element, if the expression inside `ngReadonly` is truthy.
233+
* Sets the `readonly` attribute on the element, if the expression inside `ngReadonly` is truthy.
234+
* Note that `readonly` applies only to `input` elements with specific types. [See the input docs on
235+
* MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) for more information.
234236
*
235-
* A special directive is necessary because we cannot use interpolation inside the `readOnly`
237+
* A special directive is necessary because we cannot use interpolation inside the `readonly`
236238
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
237239
*
238240
* @example

0 commit comments

Comments
 (0)