/** * @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 {Directive, Host, Inject, Input, OnDestroy, OnInit, Optional, Self, SkipSelf, forwardRef} from '@angular/core'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators'; import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; export const modelGroupProvider: any = /*@ts2dart_const*/ /* @ts2dart_Provider */ { provide: ControlContainer, useExisting: forwardRef(() => NgModelGroup) }; /** * 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: ` *