44 lines
949 B
Plaintext
44 lines
949 B
Plaintext
|
|
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/model.js#L96">angular2/src/forms/model.js (line 96)</a>
|
|
|
|
:markdown
|
|
Defines a part of a form that cannot be divided into other controls.
|
|
|
|
`Control` is one of the three fundamental building blocks used to define forms in Angular, along with
|
|
<a href="angular2/forms/ControlGroup-class"><code>ControlGroup</code></a> and <a href="angular2/forms/ControlArray-class"><code>ControlArray</code></a>.
|
|
|
|
.l-main-section
|
|
h2 Members
|
|
.l-sub-section
|
|
h3 constructor
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
constructor(value:any, validator:Function = Validators.nullValidator)
|
|
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 updateValue
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
updateValue(value:any)
|
|
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|