
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@angular2-material/radio
Advanced tools
Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.

Importing the symbols:
import { MdRadioModule } from '@angular2-material/radio';
Adding providers and directives:
@NgModule({
imports: [MdRadioModule],
...
})
export class MyAppModule { }
A basic radio group would have the following markup.
<md-radio-group>
<md-radio-button value="option_1">1</md-radio-button>
<md-radio-button value="option_2">2</md-radio-button>
</md-radio-group>
A dynamic example, populated from a data variable:
<md-radio-group [(value)]="groupValue">
<md-radio-button *ngFor="let d of data" [value]="d.value">
{{d.label}}
</md-radio-button>
</md-radio-group>
A dynamic example for use inside a form showing support for [(ngModel)]:
<md-radio-group [(ngModel)]="chosenOption">
<md-radio-button *ngFor="let o of options" [value]="o.value">
{{o.label}}
</md-radio-button>
</md-radio-group>
<md-radio-group>| Name | Type | Description |
|---|---|---|
selected | MdRadioButton | The currently selected button. |
value | any | The current value for this group. |
disabled | boolean | Whether the group is disabled. |
When selection is changed, an event is emitted from the change EventEmitter property.
The md-radio-group component has no button initially selected.
<md-radio-button>| Name (attribute) | Type | Description |
|---|---|---|
id | string | The unique ID of this radio button. |
name | string | Group name, defaults to parent radio group if present. |
value | any | The value of this radio button. |
checked | boolean | Whether the radio is checked. |
disabled | boolean | Whether the radio is disabled. |
aria-label | string | Used to set the aria-label attribute of the underlying input element. |
aria-labelledby | string | Used to set the aria-labelledby attribute of the underlying input element. |
If provided, this attribute takes precedence as the element's text alternative. |
When checked, an event is emitted from the change EventEmitter property.
md-radio-button component by default uses the accent color from the theme palette.FAQs
Angular 2 Material radio
The npm package @angular2-material/radio receives a total of 52 weekly downloads. As such, @angular2-material/radio popularity was classified as not popular.
We found that @angular2-material/radio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.