import {Directive, Inject, Optional, Self, forwardRef} from '@angular/core'; import {EventEmitter, ObservableWrapper, PromiseWrapper} from '../facade/async'; import {ListWrapper} from '../facade/collection'; import {isPresent} from '../facade/lang'; import {AbstractControl, FormControl, FormGroup} from '../model'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators'; import {ControlContainer} from './control_container'; import {Form} from './form_interface'; import {NgControl} from './ng_control'; import {NgModelGroup} from './ng_model_group'; import {composeAsyncValidators, composeValidators, setUpControl, setUpFormGroup} from './shared'; export const formDirectiveProvider: any = /*@ts2dart_const*/ {provide: ControlContainer, useExisting: forwardRef(() => NgForm)}; /** * If `NgForm` is bound in a component, `