angular-cn/public/docs/js/latest/api/forms/CheckboxControlValueAccesso...

70 lines
913 B
Plaintext
Raw Normal View History

2015-04-19 16:53:18 -04:00
2015-04-22 11:06:51 -04:00
p.location-badge.
2015-04-23 11:27:36 -04:00
exported from <a href="/angular2/forms.html">angular2/forms</a>
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/forms/directives.js#L70">angular2/src/forms/directives.js (line 70)</a>
2015-04-19 16:53:18 -04:00
:markdown
The accessor for writing a value and listening to changes on a checkbox input element.
# Example
```
<input type="checkbox" [control]="rememberLogin">
```
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
2015-04-28 09:22:25 -04:00
constructor(cd:ControlDirective, elementRef:ElementRef, renderer:Renderer)
2015-04-19 16:53:18 -04:00
:markdown
2015-04-28 09:22:25 -04:00
.l-sub-section
h3 checked
:markdown
2015-04-28 09:22:25 -04:00
2015-04-19 16:53:18 -04:00
.l-sub-section
h3 onChange
:markdown
2015-04-19 16:53:18 -04:00
.l-sub-section
h3 writeValue
pre.prettyprint
code.
2015-04-20 16:57:43 -04:00
writeValue(value)
2015-04-19 16:53:18 -04:00
:markdown
2015-04-19 16:53:18 -04:00