File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2770,12 +2770,17 @@ var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
2770
2770
* @name ngValue
2771
2771
*
2772
2772
* @description
2773
- * Binds the given expression to the value of `option` or `input[radio]`, so
2774
- * that when the element is selected, the `ngModel` of that element is set to
2773
+ * Binds the given expression to the value of `< option> ` or { @link input[radio] `input[radio]`},
2774
+ * so that when the element is selected, the { @link ngModel `ngModel`} of that element is set to
2775
2775
* the bound value.
2776
2776
*
2777
- * `ngValue` is useful when dynamically generating lists of radio buttons using `ng-repeat`, as
2778
- * shown below.
2777
+ * `ngValue` is useful when dynamically generating lists of radio buttons using
2778
+ * {@link ngRepeat `ngRepeat`}, as shown below.
2779
+ *
2780
+ * Likewise, `ngValue` can be used to generate `<option>` elements for
2781
+ * the {@link select `select`} element. In that case however, only strings are supported
2782
+ * for the `value `attribute, so the resulting `ngModel` will always be a string.
2783
+ * Support for `select` models with non-string values is available via `ngOptions`.
2779
2784
*
2780
2785
* @element input
2781
2786
* @param {string= } ngValue angular expression, whose value will be bound to the `value` attribute
You can’t perform that action at this time.
0 commit comments