diff --git a/packages/common/src/directives/ng_component_outlet.ts b/packages/common/src/directives/ng_component_outlet.ts index 3d04a2574e..81598ac40c 100644 --- a/packages/common/src/directives/ng_component_outlet.ts +++ b/packages/common/src/directives/ng_component_outlet.ts @@ -66,6 +66,7 @@ import {ComponentFactoryResolver, ComponentRef, Directive, Injector, Input, NgMo * {@example common/ngComponentOutlet/ts/module.ts region='NgModuleFactoryExample'} * * @experimental + * @ngModule CommonModule */ @Directive({selector: '[ngComponentOutlet]'}) export class NgComponentOutlet implements OnChanges, OnDestroy { diff --git a/packages/common/src/directives/ng_for_of.ts b/packages/common/src/directives/ng_for_of.ts index 0779162ddb..b75b3f7d8d 100644 --- a/packages/common/src/directives/ng_for_of.ts +++ b/packages/common/src/directives/ng_for_of.ts @@ -92,7 +92,7 @@ export class NgForOfContext { * See a [live demo](http://plnkr.co/edit/KVuXxDp0qinGDyo307QW?p=preview) for a more detailed * example. * - * + * @ngModule CommonModule */ @Directive({selector: '[ngFor][ngForOf]'}) export class NgForOf implements DoCheck { diff --git a/packages/common/src/directives/ng_if.ts b/packages/common/src/directives/ng_if.ts index 4c8d42f26c..b9ea552b6f 100644 --- a/packages/common/src/directives/ng_if.ts +++ b/packages/common/src/directives/ng_if.ts @@ -99,7 +99,7 @@ import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstri * ... * ``` * - * + * @ngModule CommonModule */ @Directive({selector: '[ngIf]'}) export class NgIf { diff --git a/packages/common/src/pipes/case_conversion_pipes.ts b/packages/common/src/pipes/case_conversion_pipes.ts index e2e6041dac..385ec5039a 100644 --- a/packages/common/src/pipes/case_conversion_pipes.ts +++ b/packages/common/src/pipes/case_conversion_pipes.ts @@ -21,7 +21,7 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error'; * * * - * + * @ngModule CommonModule */ @Pipe({name: 'lowercase'}) export class LowerCasePipe implements PipeTransform { @@ -63,7 +63,7 @@ const unicodeWordMatch = * * * - * + * @ngModule CommonModule */ @Pipe({name: 'titlecase'}) export class TitleCasePipe implements PipeTransform { @@ -85,6 +85,8 @@ export class TitleCasePipe implements PipeTransform { * Transforms text to all upper case. * @see `LowerCasePipe` * @see `TitleCasePipe` + * + * @ngModule CommonModule */ @Pipe({name: 'uppercase'}) export class UpperCasePipe implements PipeTransform { diff --git a/packages/common/src/pipes/deprecated/number_pipe.ts b/packages/common/src/pipes/deprecated/number_pipe.ts index 6195edffcc..c53dc61a7e 100644 --- a/packages/common/src/pipes/deprecated/number_pipe.ts +++ b/packages/common/src/pipes/deprecated/number_pipe.ts @@ -60,8 +60,6 @@ function formatNumber( } /** - * @ngModule CommonModule - * * Formats a number as text. Group sizing and separator and other locale-specific * configurations are based on the active locale. * @@ -84,6 +82,7 @@ function formatNumber( * * {@example common/pipes/ts/number_pipe.ts region='DeprecatedNumberPipe'} * + * @ngModule CommonModule */ @Pipe({name: 'number'}) export class DeprecatedDecimalPipe implements PipeTransform { diff --git a/packages/forms/src/directives/checkbox_value_accessor.ts b/packages/forms/src/directives/checkbox_value_accessor.ts index dd8ee87b5a..6aeea5b98b 100644 --- a/packages/forms/src/directives/checkbox_value_accessor.ts +++ b/packages/forms/src/directives/checkbox_value_accessor.ts @@ -24,7 +24,8 @@ export const CHECKBOX_VALUE_ACCESSOR: any = { * * ``` * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: diff --git a/packages/forms/src/directives/default_value_accessor.ts b/packages/forms/src/directives/default_value_accessor.ts index b082fd0688..10da6ed93c 100644 --- a/packages/forms/src/directives/default_value_accessor.ts +++ b/packages/forms/src/directives/default_value_accessor.ts @@ -40,7 +40,8 @@ export const COMPOSITION_BUFFER_MODE = new InjectionToken('CompositionE * * ``` * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: diff --git a/packages/forms/src/directives/ng_control_status.ts b/packages/forms/src/directives/ng_control_status.ts index 44ebb8d9eb..769b052459 100644 --- a/packages/forms/src/directives/ng_control_status.ts +++ b/packages/forms/src/directives/ng_control_status.ts @@ -49,7 +49,8 @@ export const ngControlStatusHost = { * * ng-untouched * * ng-touched * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost}) export class NgControlStatus extends AbstractControlStatus { @@ -60,7 +61,8 @@ export class NgControlStatus extends AbstractControlStatus { * Directive automatically applied to Angular form groups that sets CSS classes * based on control status (valid/invalid/dirty/etc). * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: diff --git a/packages/forms/src/directives/ng_form.ts b/packages/forms/src/directives/ng_form.ts index db914b4a33..1f4c76fa64 100644 --- a/packages/forms/src/directives/ng_form.ts +++ b/packages/forms/src/directives/ng_form.ts @@ -73,10 +73,7 @@ const resolvedPromise = Promise.resolve(null); * * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'} * - * * **npm package**: `@angular/forms` - * - * * **NgModule**: `FormsModule` - * + * @ngModule FormsModule */ @Directive({ selector: 'form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]', diff --git a/packages/forms/src/directives/ng_form_selector_warning.ts b/packages/forms/src/directives/ng_form_selector_warning.ts index 6f418a7fc3..7124a8f143 100644 --- a/packages/forms/src/directives/ng_form_selector_warning.ts +++ b/packages/forms/src/directives/ng_form_selector_warning.ts @@ -18,7 +18,7 @@ export const NG_FORM_SELECTOR_WARNING = new InjectionToken('NgFormSelectorWarnin * This directive is solely used to display warnings when the deprecated `ngForm` selector is used. * * @deprecated in Angular v6 and will be removed in Angular v9. - * + * @ngModule FormsModule */ @Directive({selector: 'ngForm'}) export class NgFormSelectorWarning { diff --git a/packages/forms/src/directives/ng_model.ts b/packages/forms/src/directives/ng_model.ts index 966bbe04b2..2b7c1cd770 100644 --- a/packages/forms/src/directives/ng_model.ts +++ b/packages/forms/src/directives/ng_model.ts @@ -97,11 +97,7 @@ const resolvedPromise = Promise.resolve(null); * * Radio buttons: `RadioControlValueAccessor` * * Selects: `SelectControlValueAccessor` * - * **npm package**: `@angular/forms` - * - * **NgModule**: `FormsModule` - * - * + * @ngModule FormsModule */ @Directive({ selector: '[ngModel]:not([formControlName]):not([formControl])', diff --git a/packages/forms/src/directives/ng_model_group.ts b/packages/forms/src/directives/ng_model_group.ts index e6d88209c8..cdd58c20bd 100644 --- a/packages/forms/src/directives/ng_model_group.ts +++ b/packages/forms/src/directives/ng_model_group.ts @@ -39,11 +39,7 @@ export const modelGroupProvider: any = { * * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'} * - * * **npm package**: `@angular/forms` - * - * * **NgModule**: `FormsModule` - * - * + * @ngModule FormsModule */ @Directive({selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup'}) export class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy { diff --git a/packages/forms/src/directives/ng_no_validate_directive.ts b/packages/forms/src/directives/ng_no_validate_directive.ts index b20f07a95c..5ad506a811 100644 --- a/packages/forms/src/directives/ng_no_validate_directive.ts +++ b/packages/forms/src/directives/ng_no_validate_directive.ts @@ -22,6 +22,8 @@ import {Directive} from '@angular/core'; * ``` * * @experimental + * @ngModule ReactiveFormsModule + * @ngModule FormsModule */ @Directive({ selector: 'form:not([ngNoForm]):not([ngNativeValidate])', diff --git a/packages/forms/src/directives/number_value_accessor.ts b/packages/forms/src/directives/number_value_accessor.ts index 96a823f72f..4ed6d81cbc 100644 --- a/packages/forms/src/directives/number_value_accessor.ts +++ b/packages/forms/src/directives/number_value_accessor.ts @@ -24,6 +24,8 @@ export const NUMBER_VALUE_ACCESSOR: any = { * ``` * * ``` + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: diff --git a/packages/forms/src/directives/radio_control_value_accessor.ts b/packages/forms/src/directives/radio_control_value_accessor.ts index 9816da683f..5346ee8c60 100644 --- a/packages/forms/src/directives/radio_control_value_accessor.ts +++ b/packages/forms/src/directives/radio_control_value_accessor.ts @@ -79,9 +79,8 @@ export class RadioControlRegistry { * * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'} * - * * **npm package**: `@angular/forms` - * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: diff --git a/packages/forms/src/directives/range_value_accessor.ts b/packages/forms/src/directives/range_value_accessor.ts index 0be4c6ed0d..8c35fbb3f9 100644 --- a/packages/forms/src/directives/range_value_accessor.ts +++ b/packages/forms/src/directives/range_value_accessor.ts @@ -24,6 +24,8 @@ export const RANGE_VALUE_ACCESSOR: StaticProvider = { * ``` * * ``` + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: diff --git a/packages/forms/src/directives/reactive_directives/form_control_directive.ts b/packages/forms/src/directives/reactive_directives/form_control_directive.ts index 51b9068aae..01fba08c66 100644 --- a/packages/forms/src/directives/reactive_directives/form_control_directive.ts +++ b/packages/forms/src/directives/reactive_directives/form_control_directive.ts @@ -64,10 +64,6 @@ export const formControlBinding: any = { * * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'} * - * * **npm package**: `@angular/forms` - * - * * **NgModule**: `ReactiveFormsModule` - * * ### Use with ngModel * * Support for using the `ngModel` input property and `ngModelChange` event with reactive @@ -134,7 +130,7 @@ export const formControlBinding: any = { * pattern with a config value of `"always"`. This may help to track down where in the code * the pattern is being used as the code is being updated. * - * + * @ngModule ReactiveFormsModule */ @Directive({selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm'}) diff --git a/packages/forms/src/directives/reactive_directives/form_control_name.ts b/packages/forms/src/directives/reactive_directives/form_control_name.ts index 66cfa050e7..841b3b73d8 100644 --- a/packages/forms/src/directives/reactive_directives/form_control_name.ts +++ b/packages/forms/src/directives/reactive_directives/form_control_name.ts @@ -72,10 +72,6 @@ export const controlNameBinding: any = { * * Radio buttons: `RadioControlValueAccessor` * * Selects: `SelectControlValueAccessor` * - * **npm package**: `@angular/forms` - * - * **NgModule**: `ReactiveFormsModule` - * * ### Use with ngModel * * Support for using the `ngModel` input property and `ngModelChange` event with reactive @@ -146,7 +142,7 @@ export const controlNameBinding: any = { * pattern with a config value of `"always"`. This may help to track down where in the code * the pattern is being used as the code is being updated. * - * + * @ngModule ReactiveFormsModule */ @Directive({selector: '[formControlName]', providers: [controlNameBinding]}) export class FormControlName extends NgControl implements OnChanges, OnDestroy { diff --git a/packages/forms/src/directives/reactive_directives/form_group_directive.ts b/packages/forms/src/directives/reactive_directives/form_group_directive.ts index 05b244ac59..a3879cd349 100644 --- a/packages/forms/src/directives/reactive_directives/form_group_directive.ts +++ b/packages/forms/src/directives/reactive_directives/form_group_directive.ts @@ -52,11 +52,7 @@ export const formDirectiveProvider: any = { * * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'} * - * **npm package**: `@angular/forms` - * - * **NgModule**: `ReactiveFormsModule` - * - * + * @ngModule ReactiveFormsModule */ @Directive({ selector: '[formGroup]', diff --git a/packages/forms/src/directives/reactive_directives/form_group_name.ts b/packages/forms/src/directives/reactive_directives/form_group_name.ts index b53d1464ab..86033634d9 100644 --- a/packages/forms/src/directives/reactive_directives/form_group_name.ts +++ b/packages/forms/src/directives/reactive_directives/form_group_name.ts @@ -61,11 +61,7 @@ export const formGroupNameProvider: any = { * * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'} * - * * **npm package**: `@angular/forms` - * - * * **NgModule**: `ReactiveFormsModule` - * - * + * @ngModule ReactiveFormsModule */ @Directive({selector: '[formGroupName]', providers: [formGroupNameProvider]}) export class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy { @@ -136,11 +132,7 @@ export const formArrayNameProvider: any = { * * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'} * - * * **npm package**: `@angular/forms` - * - * * **NgModule**: `ReactiveFormsModule` - * - * + * @ngModule ReactiveFormsModule */ @Directive({selector: '[formArrayName]', providers: [formArrayNameProvider]}) export class FormArrayName extends ControlContainer implements OnInit, OnDestroy { diff --git a/packages/forms/src/directives/select_control_value_accessor.ts b/packages/forms/src/directives/select_control_value_accessor.ts index 1597ae8872..7157a5c33a 100644 --- a/packages/forms/src/directives/select_control_value_accessor.ts +++ b/packages/forms/src/directives/select_control_value_accessor.ts @@ -85,9 +85,8 @@ function _extractId(valueString: string): string { * https://bugzilla.mozilla.org/show_bug.cgi?id=1024350 * https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4660045/ * - * * **npm package**: `@angular/forms` - * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: @@ -164,7 +163,8 @@ export class SelectControlValueAccessor implements ControlValueAccessor { * * See docs for `SelectControlValueAccessor` for usage examples. * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({selector: 'option'}) export class NgSelectOption implements OnDestroy { diff --git a/packages/forms/src/directives/select_multiple_control_value_accessor.ts b/packages/forms/src/directives/select_multiple_control_value_accessor.ts index d30433b1aa..ba8744d5ae 100644 --- a/packages/forms/src/directives/select_multiple_control_value_accessor.ts +++ b/packages/forms/src/directives/select_multiple_control_value_accessor.ts @@ -68,7 +68,8 @@ abstract class HTMLCollection { * } * ``` * - * + * @ngModule ReactiveFormsModule + * @ngModule FormsModule */ @Directive({ selector: @@ -175,6 +176,8 @@ export class SelectMultipleControlValueAccessor implements ControlValueAccessor * * * ``` + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({selector: 'option'}) export class NgSelectMultipleOption implements OnDestroy { diff --git a/packages/forms/src/directives/validators.ts b/packages/forms/src/directives/validators.ts index c9727435a5..fa527c26f0 100644 --- a/packages/forms/src/directives/validators.ts +++ b/packages/forms/src/directives/validators.ts @@ -131,7 +131,8 @@ export const CHECKBOX_REQUIRED_VALIDATOR: StaticProvider = { * * ``` * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: @@ -172,6 +173,8 @@ export class RequiredValidator implements Validator { * ``` * * @experimental + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: @@ -207,6 +210,8 @@ export const EMAIL_VALIDATOR: any = { * ``` * * @experimental + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: '[email][formControlName],[email][formControl],[email][ngModel]', @@ -254,7 +259,8 @@ export const MIN_LENGTH_VALIDATOR: any = { * A directive which installs the `MinLengthValidator` for any `formControlName`, * `formControl`, or control with `ngModel` that also has a `minlength` attribute. * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]', @@ -306,7 +312,8 @@ export const MAX_LENGTH_VALIDATOR: any = { * A directive which installs the `MaxLengthValidator` for any `formControlName`, * `formControl`, or control with `ngModel` that also has a `maxlength` attribute. * - * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]', @@ -361,6 +368,8 @@ export const PATTERN_VALIDATOR: any = { * * ``` * + * @ngModule FormsModule + * @ngModule ReactiveFormsModule */ @Directive({ selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',