mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(radio): add MdUniqueSelectionDispatcher to docs (#839)
Closes #834
This commit is contained in:
@@ -3,6 +3,22 @@ Radio buttons allow the user to select one option from a set. Use radio buttons
|
||||
|
||||

|
||||
|
||||
### 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
|
||||
|
||||
Reference in New Issue
Block a user