Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ce20dd0

Browse files
timraymondNarretz
authored andcommittedOct 29, 2014
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 #7994 Closes #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

Lines changed: 3 additions & 3 deletions
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)
This repository has been archived.