Skip to content

Commit 8474119

Browse files
pgurenkokara
authored andcommitted
docs(radio): add MdUniqueSelectionDispatcher to docs (#839)
Closes #834
1 parent 3c74ae0 commit 8474119

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/components/radio/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ Radio buttons allow the user to select one option from a set. Use radio buttons
33

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

6+
### Setup
7+
Importing the symbols:
8+
```typescript
9+
import { MdUniqueSelectionDispatcher } from '@angular2-material/core';
10+
import { MD_RADIO_DIRECTIVES } from '@angular2-material/radio';
11+
```
12+
13+
Adding providers and directives:
14+
```typescript
15+
@Component({
16+
...
17+
directives: [MD_RADIO_DIRECTIVES],
18+
providers: [MdUniqueSelectionDispatcher]
19+
})
20+
```
21+
622
### Examples
723
A basic radio group would have the following markup.
824
```html

0 commit comments

Comments
 (0)