mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-13 08:59:54 +08:00
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:
committed by
Martin Staffa
parent
d7a78e420a
commit
ce20dd06fe
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user