Skip to content

Commit ce20dd0

Browse files
timraymondNarretz
authored andcommitted
docs(ngValue): replace input[select] with option for clarity
It is impossible to create an `input[select]`, so it appears the intention here was actually `option`. Fixes angular#7994 Closes angular#8203
1 parent d7a78e4 commit ce20dd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/directive/input.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2772,9 +2772,9 @@ var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
27722772
* @name ngValue
27732773
*
27742774
* @description
2775-
* Binds the given expression to the value of `input[select]` or `input[radio]`, so
2776-
* that when the element is selected, the `ngModel` of that element is set to the
2777-
* bound value.
2775+
* Binds the given expression to the value of `option` or `input[radio]`, so
2776+
* that when the element is selected, the `ngModel` of that element is set to
2777+
* the bound value.
27782778
*
27792779
* `ngValue` is useful when dynamically generating lists of radio buttons using `ng-repeat`, as
27802780
* shown below.

0 commit comments

Comments
 (0)