This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -913,12 +913,15 @@ var inputType = {
913
913
* HTML radio button.
914
914
*
915
915
* @param {string } ngModel Assignable angular expression to data-bind to.
916
- * @param {string } value The value to which the expression should be set when selected.
916
+ * @param {string } value The value to which the `ngModel` expression should be set when selected.
917
+ * Note that `value` only supports `string` values, i.e. the scope model needs to be a string,
918
+ * too. Use `ngValue` if you need complex models (`number`, `object`, ...).
917
919
* @param {string= } name Property name of the form under which the control is published.
918
920
* @param {string= } ngChange Angular expression to be executed when input changes due to user
919
921
* interaction with the input element.
920
- * @param {string } ngValue Angular expression which sets the value to which the expression should
921
- * be set when selected.
922
+ * @param {string } ngValue Angular expression to which `ngModel` will be be set when the radio
923
+ * is selected. Should be used instead of the `value` attribute if you need
924
+ * a non-string `ngModel` (`boolean`, `array`, ...).
922
925
*
923
926
* @example
924
927
<example name="radio-input-directive" module="radioExample">
You can’t perform that action at this time.
0 commit comments