2015-04-10 12:45:02 +02:00
|
|
|
/**
|
|
|
|
* @module
|
|
|
|
* @description
|
2015-05-20 18:10:30 -07:00
|
|
|
* This module is used for handling user input, by defining and building a {@link ControlGroup} that
|
|
|
|
* consists of
|
|
|
|
* {@link Control} objects, and mapping them onto the DOM. {@link Control} objects can then be used
|
|
|
|
* to read information
|
2015-04-17 13:01:07 -07:00
|
|
|
* from the form DOM elements.
|
2015-04-10 11:15:01 -07:00
|
|
|
*
|
2015-05-20 18:10:30 -07:00
|
|
|
* This module is not included in the `angular2` module; you must import the forms module
|
|
|
|
* explicitly.
|
2015-04-13 21:00:52 -07:00
|
|
|
*
|
2015-04-10 12:45:02 +02:00
|
|
|
*/
|
|
|
|
|
2015-09-03 22:01:36 -07:00
|
|
|
export {AbstractControl, Control, ControlGroup, ControlArray} from './forms/model';
|
2015-06-19 16:33:49 -07:00
|
|
|
|
2015-09-03 22:01:36 -07:00
|
|
|
export {AbstractControlDirective} from './forms/directives/abstract_control_directive';
|
|
|
|
export {Form} from './forms/directives/form_interface';
|
|
|
|
export {ControlContainer} from './forms/directives/control_container';
|
|
|
|
export {NgControlName} from './forms/directives/ng_control_name';
|
|
|
|
export {NgFormControl} from './forms/directives/ng_form_control';
|
|
|
|
export {NgModel} from './forms/directives/ng_model';
|
|
|
|
export {NgControl} from './forms/directives/ng_control';
|
|
|
|
export {NgControlGroup} from './forms/directives/ng_control_group';
|
|
|
|
export {NgFormModel} from './forms/directives/ng_form_model';
|
|
|
|
export {NgForm} from './forms/directives/ng_form';
|
|
|
|
export {ControlValueAccessor} from './forms/directives/control_value_accessor';
|
|
|
|
export {DefaultValueAccessor} from './forms/directives/default_value_accessor';
|
|
|
|
export {CheckboxControlValueAccessor} from './forms/directives/checkbox_value_accessor';
|
2015-07-17 14:07:32 -07:00
|
|
|
export {
|
|
|
|
NgSelectOption,
|
|
|
|
SelectControlValueAccessor
|
2015-09-03 22:01:36 -07:00
|
|
|
} from './forms/directives/select_control_value_accessor';
|
|
|
|
export {FORM_DIRECTIVES} from './forms/directives';
|
|
|
|
export {NG_VALIDATORS, Validators} from './forms/validators';
|
|
|
|
export {DefaultValidators} from './forms/directives/validators';
|
|
|
|
export {FormBuilder} from './forms/form_builder';
|
2015-06-09 22:38:19 -07:00
|
|
|
|
2015-09-03 22:01:36 -07:00
|
|
|
import {FormBuilder} from './forms/form_builder';
|
|
|
|
import {CONST_EXPR, Type} from './facade/lang';
|
2015-06-19 16:33:49 -07:00
|
|
|
|
2015-09-24 15:03:16 -07:00
|
|
|
/**
|
|
|
|
* Shorthand set of bindings used for building Angular forms.
|
|
|
|
*
|
|
|
|
* ### Example:
|
|
|
|
*
|
|
|
|
* ```typescript
|
|
|
|
* bootstrap(MyApp, [FORM_BINDINGS]);
|
|
|
|
* ```
|
|
|
|
*/
|
2015-08-28 11:29:19 -07:00
|
|
|
export const FORM_BINDINGS: Type[] = CONST_EXPR([FormBuilder]);
|