angular-cn/public/docs/js/latest/api/forms/ControlGroup-class.jade
2015-04-19 13:53:18 -07:00

96 lines
1.5 KiB
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#L131">angular2/src/forms/model.js (line 131)</a>
:markdown
Defines a part of a form, of fixed length, that can contain other controls.
A ControlGroup aggregates the values and errors of each [Control] in the group. Thus, if one of the controls in a
group is invalid, the entire group is invalid. Similarly, if a control changes its value, the entire group changes
as well.
`ControlGroup` is one of the three fundamental building blocks used to define forms in Angular, along with [Control]
and [ControlArray]. [ControlArray] can also contain other controls, but is of variable length.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
(controls:StringMap, optionals:StringMap = null, validator:Function = Validators.group)
:markdown
.l-sub-section
h3 contains
pre.prettyprint
code.
(controlName:string)
:markdown
.l-sub-section
h3 controls
:markdown
.l-sub-section
h3 exclude
pre.prettyprint
code.
(controlName:string)
:markdown
.l-sub-section
h3 include
pre.prettyprint
code.
(controlName:string)
:markdown