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
This commit is contained in:
Tim Raymond
2014-07-15 07:44:23 -04:00
committed by Martin Staffa
parent d7a78e420a
commit ce20dd06fe

View File

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