/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { OnDestroy, OnInit } from '@angular/core'; import { AbstractFormGroupDirective } from './abstract_form_group_directive'; import { ControlContainer } from './control_container'; export declare const modelGroupProvider: any; /** * @whatItDoes Creates and binds a {@link FormGroup} instance to a DOM element. * * @howToUse * * This directive can only be used as a child of {@link NgForm} (or in other words, * within `
` tags). * * Use this directive if you'd like to create a sub-group within a form. This can * come in handy if you want to validate a sub-group of your form separately from * the rest of your form, or if some values in your domain model make more sense to * consume together in a nested object. * * Pass in the name you'd like this sub-group to have and it will become the key * for the sub-group in the form's full value. You can also export the directive into * a local template variable using `ngModelGroup` (ex: `#myGroup="ngModelGroup"`). * * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'} * * * **npm package**: `@angular/forms` * * * **NgModule**: `FormsModule` * * @stable */ export declare class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy { name: string; constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]); }