Improve this Doc View Source ngValue
- directive in module ng
ngValue is useful when dynamically generating lists of radio buttons using
ngRepeat, as shown below.
ngValue can be used to generate
<option> elements for the
select element. In that case however, only strings are supported for the
valueattribute, so the resulting
ngModel will always be a string. Support for
select models with non-string values is available via
- This directive executes at priority level 0.
- as attribute:
<input [ng-value="string"]> ... </input>
| ngValue |
| || |
angular expression, whose value will be bound to the
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.