From fee5dea826d6edf13abdadee3eae95b2a98ff8eb Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Mon, 2 Nov 2015 11:35:47 -0800 Subject: [PATCH] fix(forms): Export the NG_VALUE_ACCESSOR binding token. This is needed to allow component authors to implement custom ControlValueAccessors for their input components. --- modules/angular2/src/core/forms.ts | 2 +- modules/angular2/test/public_api_spec.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/angular2/src/core/forms.ts b/modules/angular2/src/core/forms.ts index 8e82ce44b0..594c410f2b 100644 --- a/modules/angular2/src/core/forms.ts +++ b/modules/angular2/src/core/forms.ts @@ -24,7 +24,7 @@ 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 {ControlValueAccessor, NG_VALUE_ACCESSOR} from './forms/directives/control_value_accessor'; export {DefaultValueAccessor} from './forms/directives/default_value_accessor'; export {NgControlStatus} from './forms/directives/ng_control_status'; export {CheckboxControlValueAccessor} from './forms/directives/checkbox_value_accessor'; diff --git a/modules/angular2/test/public_api_spec.ts b/modules/angular2/test/public_api_spec.ts index 9d13af6e09..ce29d39139 100644 --- a/modules/angular2/test/public_api_spec.ts +++ b/modules/angular2/test/public_api_spec.ts @@ -821,6 +821,7 @@ var NG_ALL = [ 'LowerCasePipe', 'LowerCasePipe.transform()', 'NG_VALIDATORS', + 'NG_VALUE_ACCESSOR', 'NG_ASYNC_VALIDATORS', 'NgClass', 'NgClass.doCheck()',