export directive NgControlGroup
export directive NgControlGroup
exported from angular2/common defined in angular2/src/common/forms/directives/ng_control_group.ts (line 22)
Creates and binds a control group to a DOM element.
This directive can only be used as a child of NgForm
or NgFormModel
.
Example (live demo)
This example declares a control group for a user's name. The value and validation state of this group can be accessed separately from the overall form.
Selectors
[ngControlGroup]
Inputs
ng-control-group
bound to .name
Exported As
ngForm
Constructor
constructor(parent: ControlContainer, _validators: any[], _asyncValidators: any[])
constructor(parent: ControlContainer, _validators: any[], _asyncValidators: any[])
Not Yet Documented
Members
ngOnInit() : void
ngOnInit() : void
Not Yet Documented
ngOnDestroy() : void
ngOnDestroy() : void
Not Yet Documented
control : ControlGroup
control : ControlGroup
Get the ControlGroup
backing this binding.
path : string[]
path : string[]
Get the path to this control group.
formDirective : Form
formDirective : Form
Get the Form
to which this group belongs.
validator : Function
validator : Function
Not Yet Documented
asyncValidator : Function
asyncValidator : Function
Not Yet Documented