2015-04-19 13:53:18 -07:00
2015-04-22 08:06:51 -07:00
p.location-badge.
2015-06-01 22:51:00 -07:00
exported from <a href='../forms'>angular2/forms</a>
2015-06-19 12:08:22 -07:00
defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/forms/directives/checkbox_value_accessor.ts#L4-L51">angular2/src/forms/directives/checkbox_value_accessor.ts (line 4)</a>
2015-04-19 13:53:18 -07:00
:markdown
The accessor for writing a value and listening to changes on a checkbox input element.
# Example
```
2015-06-19 12:08:22 -07:00
<input type="checkbox" [ng-control]="rememberLogin">
2015-04-19 13:53:18 -07:00
```
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef)
2015-04-19 13:53:18 -07:00
:markdown
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00
2015-04-28 06:22:25 -07:00
.l-sub-section
h3 checked
:markdown
2015-05-01 06:37:29 -07:00
2015-04-28 06:22:25 -07:00
2015-06-01 22:51:00 -07:00
2015-04-28 06:22:25 -07:00
2015-04-19 13:53:18 -07:00
.l-sub-section
h3 onChange
:markdown
2015-05-01 06:37:29 -07:00
2015-04-19 13:53:18 -07:00
2015-06-01 22:51:00 -07:00
2015-06-19 12:08:22 -07:00
.l-sub-section
h3 onTouched
:markdown
.l-sub-section
h3 cd
:markdown
.l-sub-section
h3 renderer
:markdown
.l-sub-section
h3 elementRef
:markdown
.l-sub-section
h3 writeValue
pre.prettyprint
code.
writeValue(value)
:markdown
2015-06-01 22:51:00 -07:00
.l-sub-section
h3 registerOnChange
pre.prettyprint
code.
registerOnChange(fn)
:markdown
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 registerOnTouched
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
registerOnTouched(fn)
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-04-19 13:53:18 -07:00
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00