/** * @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; /** * Creates and binds a model group to a DOM element. * * This directive can only be used as a child of {@link NgForm}. * * ```typescript * @Component({ * selector: 'my-app', * template: ` *
*

Angular forms Example

*
*
*

Enter your name:

*

First:

*

Middle:

*

Last:

*
*

Name value:

*
{{ mgName | json }}
*

Name is {{mgName?.valid ? "valid" : "invalid"}}

*

What's your favorite food?

*

*

Form value

*
{{ f | json }}
*
*
* ` * }) * export class App {} * ``` * * This example declares a model group for a user's name. The value and validation state of * this group can be accessed separately from the overall form. * * @experimental */ export declare class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy { name: string; constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]); }