Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/components/radio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ Radio buttons allow the user to select one option from a set. Use radio buttons

![Preview](https://material.angularjs.org/material2_assets/radio/radios.png)

### Setup
Importing the symbols:
```typescript
import { MdUniqueSelectionDispatcher } from '@angular2-material/core';
import { MD_RADIO_DIRECTIVES } from '@angular2-material/radio';
```

Adding providers and directives:
```typescript
@Component({
...
directives: [MD_RADIO_DIRECTIVES],
providers: [MdUniqueSelectionDispatcher]
})
```

### Examples
A basic radio group would have the following markup.
```html
Expand Down