Javatpoint Logo
Javatpoint Logo

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.


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:

Test it Now
Next TopicHTML Aside tag

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA