112
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.
Syntax:
Parameter explanation:
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:
Next TopicHTML Aside tag