2015-05-30 11:56:00 -07:00
|
|
|
import {Type, CONST_EXPR} from 'angular2/src/facade/lang';
|
2015-06-10 13:51:44 -07:00
|
|
|
import {NgControlName} from './directives/ng_control_name';
|
|
|
|
|
import {NgFormControl} from './directives/ng_form_control';
|
|
|
|
|
import {NgModel} from './directives/ng_model';
|
|
|
|
|
import {NgControlGroup} from './directives/ng_control_group';
|
|
|
|
|
import {NgFormModel} from './directives/ng_form_model';
|
|
|
|
|
import {NgForm} from './directives/ng_form';
|
2015-05-30 11:56:00 -07:00
|
|
|
import {DefaultValueAccessor} from './directives/default_value_accessor';
|
|
|
|
|
import {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor';
|
|
|
|
|
import {SelectControlValueAccessor} from './directives/select_control_value_accessor';
|
2015-06-10 13:51:44 -07:00
|
|
|
import {NgRequiredValidator} from './directives/validators';
|
2015-05-30 11:56:00 -07:00
|
|
|
|
2015-06-10 13:51:44 -07:00
|
|
|
export {NgControlName} from './directives/ng_control_name';
|
|
|
|
|
export {NgFormControl} from './directives/ng_form_control';
|
|
|
|
|
export {NgModel} from './directives/ng_model';
|
|
|
|
|
export {NgControl} from './directives/ng_control';
|
|
|
|
|
export {NgControlGroup} from './directives/ng_control_group';
|
|
|
|
|
export {NgFormModel} from './directives/ng_form_model';
|
|
|
|
|
export {NgForm} from './directives/ng_form';
|
2015-05-30 11:56:00 -07:00
|
|
|
export {ControlValueAccessor} from './directives/control_value_accessor';
|
|
|
|
|
export {DefaultValueAccessor} from './directives/default_value_accessor';
|
|
|
|
|
export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor';
|
|
|
|
|
export {SelectControlValueAccessor} from './directives/select_control_value_accessor';
|
2015-06-10 13:51:44 -07:00
|
|
|
export {NgRequiredValidator} from './directives/validators';
|
2015-02-07 14:14:07 -08:00
|
|
|
|
2015-03-31 22:47:11 +00:00
|
|
|
/**
|
2015-04-10 11:15:01 -07:00
|
|
|
*
|
|
|
|
|
* A list of all the form directives used as part of a `@View` annotation.
|
|
|
|
|
*
|
|
|
|
|
* This is a shorthand for importing them each individually.
|
|
|
|
|
*
|
2015-04-10 12:45:02 +02:00
|
|
|
* @exportedAs angular2/forms
|
2015-03-31 22:47:11 +00:00
|
|
|
*/
|
2015-05-19 21:10:23 -07:00
|
|
|
export const formDirectives: List<Type> = CONST_EXPR([
|
2015-06-10 13:51:44 -07:00
|
|
|
NgControlName,
|
|
|
|
|
NgControlGroup,
|
2015-05-30 11:56:00 -07:00
|
|
|
|
2015-06-10 13:51:44 -07:00
|
|
|
NgFormControl,
|
|
|
|
|
NgModel,
|
|
|
|
|
NgFormModel,
|
|
|
|
|
NgForm,
|
2015-05-30 11:56:00 -07:00
|
|
|
|
2015-05-19 21:10:23 -07:00
|
|
|
DefaultValueAccessor,
|
2015-05-30 11:56:00 -07:00
|
|
|
CheckboxControlValueAccessor,
|
2015-06-05 14:31:03 -07:00
|
|
|
SelectControlValueAccessor,
|
|
|
|
|
|
2015-06-10 13:51:44 -07:00
|
|
|
NgRequiredValidator
|
2015-05-30 11:56:00 -07:00
|
|
|
]);
|