70 lines
913 B
Plaintext
70 lines
913 B
Plaintext
|
|
p.location-badge.
|
|
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>
|
|
|
|
: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.
|
|
constructor(cd:ControlDirective, elementRef:ElementRef, renderer:Renderer)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 checked
|
|
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 onChange
|
|
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 writeValue
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
writeValue(value)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|