2015-08-20 14:28:25 -07:00
|
|
|
import {Type, CONST_EXPR} from 'angular2/src/core/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';
|
2015-06-13 12:15:42 -07:00
|
|
|
import {
|
|
|
|
|
SelectControlValueAccessor,
|
|
|
|
|
NgSelectOption
|
|
|
|
|
} from './directives/select_control_value_accessor';
|
2015-09-02 10:24:22 -07:00
|
|
|
import {DefaultValidators} from './directives/validators';
|
2015-02-03 07:27:09 -08: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';
|
2015-07-17 14:07:32 -07:00
|
|
|
export {
|
|
|
|
|
SelectControlValueAccessor,
|
|
|
|
|
NgSelectOption
|
|
|
|
|
} from './directives/select_control_value_accessor';
|
2015-09-02 10:24:22 -07:00
|
|
|
export {DefaultValidators} from './directives/validators';
|
2015-05-20 18:10:30 -07: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-03-31 22:47:11 +00:00
|
|
|
*/
|
2015-08-28 11:29:19 -07:00
|
|
|
export const FORM_DIRECTIVES: 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-06-13 12:15:42 -07:00
|
|
|
NgSelectOption,
|
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-09-02 10:24:22 -07:00
|
|
|
DefaultValidators
|
2015-07-17 14:07:32 -07:00
|
|
|
]);
|