Skip to content

Commit 8bf6ef6

Browse files
committed
fix(metadata): expose Providers in metadata
These worked in Dart because they were effectively exported even without the export keyword. Without exporting these symbols, they are not produced in .metadata.json files, which leaves dangling references from the Decorators that use them.
1 parent ca40ef5 commit 8bf6ef6

12 files changed

Lines changed: 15 additions & 15 deletions

modules/angular2/src/common/forms/directives/checkbox_value_accessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Directive, Renderer, ElementRef, Self, forwardRef, Provider} from 'angul
33
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
44
import {CONST_EXPR} from 'angular2/src/facade/lang';
55

6-
const CHECKBOX_VALUE_ACCESSOR = CONST_EXPR(new Provider(
6+
export const CHECKBOX_VALUE_ACCESSOR = CONST_EXPR(new Provider(
77
NG_VALUE_ACCESSOR, {useExisting: forwardRef(() => CheckboxControlValueAccessor), multi: true}));
88

99
/**

modules/angular2/src/common/forms/directives/default_value_accessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Directive, ElementRef, Renderer, Self, forwardRef, Provider} from 'angul
22
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
33
import {isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
44

5-
const DEFAULT_VALUE_ACCESSOR = CONST_EXPR(new Provider(
5+
export const DEFAULT_VALUE_ACCESSOR = CONST_EXPR(new Provider(
66
NG_VALUE_ACCESSOR, {useExisting: forwardRef(() => DefaultValueAccessor), multi: true}));
77

88
/**

modules/angular2/src/common/forms/directives/ng_control_group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {Form} from './form_interface';
1919
import {NG_VALIDATORS, NG_ASYNC_VALIDATORS} from '../validators';
2020
import {AsyncValidatorFn, ValidatorFn} from './validators';
2121

22-
const controlGroupProvider =
22+
export const controlGroupProvider =
2323
CONST_EXPR(new Provider(ControlContainer, {useExisting: forwardRef(() => NgControlGroup)}));
2424

2525
/**

modules/angular2/src/common/forms/directives/ng_control_name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {NG_VALIDATORS, NG_ASYNC_VALIDATORS} from '../validators';
3131
import {ValidatorFn, AsyncValidatorFn} from './validators';
3232

3333

34-
const controlNameBinding =
34+
export const controlNameBinding =
3535
CONST_EXPR(new Provider(NgControl, {useExisting: forwardRef(() => NgControlName)}));
3636

3737
/**

modules/angular2/src/common/forms/directives/ng_form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {AbstractControl, ControlGroup, Control} from '../model';
1515
import {setUpControl, setUpControlGroup, composeValidators, composeAsyncValidators} from './shared';
1616
import {Validators, NG_VALIDATORS, NG_ASYNC_VALIDATORS} from '../validators';
1717

18-
const formDirectiveProvider =
18+
export const formDirectiveProvider =
1919
CONST_EXPR(new Provider(ControlContainer, {useExisting: forwardRef(() => NgForm)}));
2020

2121
/**

modules/angular2/src/common/forms/directives/ng_form_control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from './shared';
2626
import {ValidatorFn, AsyncValidatorFn} from './validators';
2727

28-
const formControlBinding =
28+
export const formControlBinding =
2929
CONST_EXPR(new Provider(NgControl, {useExisting: forwardRef(() => NgFormControl)}));
3030

3131
/**

modules/angular2/src/common/forms/directives/ng_form_model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {Control, ControlGroup} from '../model';
2020
import {setUpControl, setUpControlGroup, composeValidators, composeAsyncValidators} from './shared';
2121
import {Validators, NG_VALIDATORS, NG_ASYNC_VALIDATORS} from '../validators';
2222

23-
const formDirectiveProvider =
23+
export const formDirectiveProvider =
2424
CONST_EXPR(new Provider(ControlContainer, {useExisting: forwardRef(() => NgFormModel)}));
2525

2626
/**

modules/angular2/src/common/forms/directives/ng_model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from './shared';
2424
import {ValidatorFn, AsyncValidatorFn} from './validators';
2525

26-
const formControlBinding =
26+
export const formControlBinding =
2727
CONST_EXPR(new Provider(NgControl, {useExisting: forwardRef(() => NgModel)}));
2828

2929
/**

modules/angular2/src/common/forms/directives/number_value_accessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Directive, ElementRef, Renderer, Self, forwardRef, Provider} from 'angul
22
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
33
import {isBlank, CONST_EXPR, NumberWrapper} from 'angular2/src/facade/lang';
44

5-
const NUMBER_VALUE_ACCESSOR = CONST_EXPR(new Provider(
5+
export const NUMBER_VALUE_ACCESSOR = CONST_EXPR(new Provider(
66
NG_VALUE_ACCESSOR, {useExisting: forwardRef(() => NumberValueAccessor), multi: true}));
77

88
/**

modules/angular2/src/common/forms/directives/radio_control_value_accessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {NgControl} from 'angular2/src/common/forms/directives/ng_control';
2020
import {CONST_EXPR, looseIdentical, isPresent} from 'angular2/src/facade/lang';
2121
import {ListWrapper} from 'angular2/src/facade/collection';
2222

23-
const RADIO_VALUE_ACCESSOR = CONST_EXPR(new Provider(
23+
export const RADIO_VALUE_ACCESSOR = CONST_EXPR(new Provider(
2424
NG_VALUE_ACCESSOR, {useExisting: forwardRef(() => RadioControlValueAccessor), multi: true}));
2525

2626

0 commit comments

Comments
 (0)