angular-docs-cn/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade

56 lines
849 B
Plaintext
Raw Normal View History

2015-04-19 13:53:18 -07:00
p.
<span class="location-badge">exported from <a href="/angular2/forms">angular2/forms</a></span>
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/forms/directives.js#L62">angular2/src/forms/directives.js (line 62)</a>
: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-20 13:57:43 -07:00
constructor(cd:ControlDirective, setCheckedProperty:Function)
2015-04-19 13:53:18 -07:00
:markdown
.l-sub-section
h3 onChange
:markdown
.l-sub-section
h3 writeValue
pre.prettyprint
code.
2015-04-20 13:57:43 -07:00
writeValue(value)
2015-04-19 13:53:18 -07:00
:markdown