Skip to content

Commit

Permalink
feat(forms): Export NgSelectOption directive
Browse files Browse the repository at this point in the history
Make the `NgSelectOption` directive visible from top-level forms module.
  • Loading branch information
Tim Blasi committed Jul 17, 2015
1 parent 011fab3 commit f74d97e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions modules/angular2/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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<Type> = CONST_EXPR([FormBuilder]);
export const formInjectables: List<Type> = CONST_EXPR([FormBuilder]);
7 changes: 5 additions & 2 deletions modules/angular2/src/forms/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand All @@ -47,4 +50,4 @@ export const formDirectives: List<Type> = CONST_EXPR([
SelectControlValueAccessor,

NgRequiredValidator
]);
]);

0 comments on commit f74d97e

Please sign in to comment.