OnsRadio Directive (ons-radio)

Angular directive for <ons-radio> component. You can use [(ngModel)] to synchronize the value of [(ngModel)] with the selected value.

A radio button element. The component will automatically render as a Material Design radio button on Android devices. Most attributes that can be used for a normal <input type="radio"> element can also be used on the <ons-radio> element.

Tutorial

Radio

ons-radio renders a radio input. Please refer to the ons-radio element Reference for more details.

See also

Attributes

Name Type Description
input-id String Specify the “id” attribute of the inner <input> element. This is useful when using <label for="..."> elements. Optional.

Properties

Name Description
value The current value of the radio button.
checked Whether the radio button is checked or not.
disabled Whether the radio button is disabled or not.

Preset Modifiers

Name Description
material Displays a Material Design radio button.

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.