diff --git a/modules/angular2/src/core/forms.ts b/modules/angular2/src/core/forms.ts index 8e82ce44b07d..594c410f2b6d 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/src/core/forms/directives/default_value_accessor.ts b/modules/angular2/src/core/forms/directives/default_value_accessor.ts index fa23a0870e72..3d5c86f97e51 100644 --- a/modules/angular2/src/core/forms/directives/default_value_accessor.ts +++ b/modules/angular2/src/core/forms/directives/default_value_accessor.ts @@ -20,7 +20,7 @@ const DEFAULT_VALUE_ACCESSOR = CONST_EXPR(new Provider( */ @Directive({ selector: - 'input:not([type=checkbox])[ng-control],textarea[ng-control],input:not([type=checkbox])[ng-form-control],textarea[ng-form-control],input:not([type=checkbox])[ng-model],textarea[ng-model]', + 'input:not([type=checkbox])[ng-control],textarea[ng-control],input:not([type=checkbox])[ng-form-control],textarea[ng-form-control],input:not([type=checkbox])[ng-model],textarea[ng-model],[ng-default-control]', // TODO: vsavkin replace the above selector with the one below it once // https://github.com/angular/angular/issues/3011 is implemented // selector: '[ng-control],[ng-model],[ng-form-control]', diff --git a/modules/angular2/test/public_api_spec.ts b/modules/angular2/test/public_api_spec.ts index 9d13af6e097d..ce29d3913909 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()',