AngularJS ng-value Directive
The AngularJS ng-value directive is used to set the value attribute of an input element, or a select element. It is mainly used on <radio> and <option> elements to set the bound values when these elements are selected.
It is supported by <input> and <select> elements.
expression: It specifies an expression that will set the element's value attribute.
Let's take an example to demonstrate ng-value directive.
See this example:Test it Now