2015-07-27 22:12:30 -07:00
p.location-badge.
exported from <a href='../forms'>angular2/forms</a>
2015-09-01 13:55:47 -07:00
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.36/modules/angular2/src/forms/model.ts#L37-L135">angular2/src/forms/model.ts (line 37)</a>
2015-07-27 22:12:30 -07:00
:markdown
2015-09-01 13:55:47 -07:00
This module is used for handling user input, by defining and building a <a href='ControlGroup-class.html'><code>ControlGroup</code></a> that
consists of
<a href='Control-class.html'><code>Control</code></a> objects, and mapping them onto the DOM. <a href='Control-class.html'><code>Control</code></a> objects can then be used
to read information
from the form DOM elements.
2015-07-27 22:12:30 -07:00
2015-09-01 13:55:47 -07:00
This module is not included in the `angular2` module; you must import the forms module
explicitly.
2015-07-27 22:12:30 -07:00
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(validator: Function)
:markdown
.l-sub-section
h3 validator
:markdown
.l-sub-section
h3 value
:markdown
.l-sub-section
h3 status
:markdown
.l-sub-section
h3 valid
:markdown
.l-sub-section
h3 errors
:markdown
.l-sub-section
h3 pristine
:markdown
.l-sub-section
h3 dirty
:markdown
.l-sub-section
h3 touched
:markdown
.l-sub-section
h3 untouched
:markdown
.l-sub-section
h3 valueChanges
:markdown
.l-sub-section
h3 markAsTouched
pre.prettyprint
code.
markAsTouched()
:markdown
.l-sub-section
h3 markAsDirty
pre.prettyprint
code.
markAsDirty({onlySelf}?: {onlySelf?: boolean})
:markdown
.l-sub-section
h3 setParent
pre.prettyprint
code.
setParent(parent: ControlGroup | ControlArray)
:markdown
.l-sub-section
h3 updateValidity
pre.prettyprint
code.
updateValidity({onlySelf}?: {onlySelf?: boolean})
:markdown
.l-sub-section
h3 updateValueAndValidity
pre.prettyprint
code.
updateValueAndValidity({onlySelf, emitEvent}?: {onlySelf?: boolean, emitEvent?: boolean})
:markdown
.l-sub-section
h3 find
pre.prettyprint
code.
2015-09-01 13:55:47 -07:00
find(path: Array<string | number>| string)
2015-07-27 22:12:30 -07:00
:markdown
.l-sub-section
h3 getError
pre.prettyprint
code.
2015-09-01 13:55:47 -07:00
getError(errorCode: string, path?: string[])
2015-07-27 22:12:30 -07:00
:markdown
.l-sub-section
h3 hasError
pre.prettyprint
code.
2015-09-01 13:55:47 -07:00
hasError(errorCode: string, path?: string[])
2015-07-27 22:12:30 -07:00
:markdown