ngValue
ng
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.
ngValue
is useful when dynamically generating lists of radio buttons using ng-repeat
, as
shown below.
<input ng-value="{string}"> ... </input>
Param | Type | Details |
---|---|---|
ngValue (optional) | string | angular expression, whose value will be bound to the |