From f74d97e1f17fa817fd38c19e02c6f98bb4bd5508 Mon Sep 17 00:00:00 2001 From: Tim Blasi Date: Fri, 17 Jul 2015 14:07:32 -0700 Subject: [PATCH] feat(forms): Export NgSelectOption directive Make the `NgSelectOption` directive visible from top-level forms module. --- modules/angular2/forms.ts | 7 +++++-- modules/angular2/src/forms/directives.ts | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/angular2/forms.ts b/modules/angular2/forms.ts index 230eea6801..c360016918 100644 --- a/modules/angular2/forms.ts +++ b/modules/angular2/forms.ts @@ -27,7 +27,10 @@ export {NgForm} from './src/forms/directives/ng_form'; export {ControlValueAccessor} from './src/forms/directives/control_value_accessor'; export {DefaultValueAccessor} from './src/forms/directives/default_value_accessor'; export {CheckboxControlValueAccessor} from './src/forms/directives/checkbox_value_accessor'; -export {SelectControlValueAccessor} from './src/forms/directives/select_control_value_accessor'; +export { + NgSelectOption, + SelectControlValueAccessor +} from './src/forms/directives/select_control_value_accessor'; export {formDirectives} from './src/forms/directives'; export {Validators} from './src/forms/validators'; export {NgValidator, NgRequiredValidator} from './src/forms/directives/validators'; @@ -36,4 +39,4 @@ export {FormBuilder} from './src/forms/form_builder'; import {FormBuilder} from './src/forms/form_builder'; import {CONST_EXPR, Type} from './src/facade/lang'; -export const formInjectables: List = CONST_EXPR([FormBuilder]); \ No newline at end of file +export const formInjectables: List = CONST_EXPR([FormBuilder]); diff --git a/modules/angular2/src/forms/directives.ts b/modules/angular2/src/forms/directives.ts index 236e4c71ce..8e43f1c1f0 100644 --- a/modules/angular2/src/forms/directives.ts +++ b/modules/angular2/src/forms/directives.ts @@ -23,7 +23,10 @@ export {NgForm} from './directives/ng_form'; 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'; +export { + SelectControlValueAccessor, + NgSelectOption +} from './directives/select_control_value_accessor'; export {NgValidator, NgRequiredValidator} from './directives/validators'; /** @@ -47,4 +50,4 @@ export const formDirectives: List = CONST_EXPR([ SelectControlValueAccessor, NgRequiredValidator -]); \ No newline at end of file +]);