Skip to content

Commit

Permalink
fix(docs): update to ButtonRadioDirective and ButtonCheckboxDirective (
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored and valorkin committed May 6, 2016
1 parent add17df commit 2e2d79b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/buttons/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
```typescript
import {BUTTON_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap';
// or
import { ButtonRadioComponent, ButtonCheckboxComponent } from 'ng2-bootstrap/ng2-bootstrap';
import { ButtonRadioDirective, ButtonCheckboxDirective } from 'ng2-bootstrap/ng2-bootstrap';
```
### Annotations
```typescript
// component ButtonRadio
// directive ButtonRadio
@Directive({ selector: '[btnRadio][ngModel]' })
export class ButtonRadioComponent implements ControlValueAccessor, OnInit {
export class ButtonRadioDirective implements ControlValueAccessor, OnInit {
@Input() public btnRadio:string;
@Input() public uncheckable:boolean;

Expand All @@ -18,9 +18,9 @@ export class ButtonRadioComponent implements ControlValueAccessor, OnInit {
@HostListener('click')
private onClick() {}
}
// component ButtonCheckbox
// directive ButtonCheckbox
@Directive({ selector: '[btnCheckbox][ngModel]' })
export class ButtonCheckboxComponent implements ControlValueAccessor, OnInit {
export class ButtonCheckboxDirective implements ControlValueAccessor, OnInit {
@Input() private btnCheckboxTrue:any;
@Input() private btnCheckboxFalse:any;

Expand Down

0 comments on commit 2e2d79b

Please sign in to comment.