Improve this Doc View Source input[radio]

  1. input in module ng

HTML radio button.

Directive Info

  • This directive executes at priority level 0.

Usage

<input type="radio"
       ng-model="string"
       value="string"
       [name="string"]
       [ng-change="string"]
       ng-value="string">

Arguments

Param Type Details
ngModel string

Assignable angular expression to data-bind to.

value string

The value to which the ngModel expression should be set when selected. Note that value only supports string values, i.e. the scope model needs to be a string, too. Use ngValue if you need complex models (number, object, ...).

name
(optional)
string

Property name of the form under which the control is published.

ngChange
(optional)
string

Angular expression to be executed when input changes due to user interaction with the input element.

ngValue string

Angular expression to which ngModel will be be set when the radio is selected. Should be used instead of the value attribute if you need a non-string ngModel (boolean, array, ...).

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.4.14/docs/api/ng/input/input%5Bradio%5D