p.location-badge.
exported from angular2/forms
defined in angular2/src/forms/directives/ng_control_group.ts (line 12)
:markdown
Creates and binds a control group to a DOM element.
This directive can only be used as a child of NgForm
or NgFormModel
.
# Example
In this example, we create the credentials and personal control groups.
We can work with each group separately: check its validity, get its value, listen to its changes.
```
@Component({selector: "signup-comp"})
@View({
directives: [formDirectives],
template: `