docs(forms): remove unnecessary {@link Injector}
jsdoc tags (#23186)
Inline code blocks are automatically linked, if possible, to their API page. PR Close #23186
This commit is contained in:

committed by
Igor Minar

parent
1aef4df127
commit
92821e338b
@ -31,27 +31,27 @@ export const formControlBinding: any = {
|
||||
/**
|
||||
* @description
|
||||
*
|
||||
* Syncs a standalone {@link FormControl} instance to a form control element.
|
||||
* Syncs a standalone `FormControl` instance to a form control element.
|
||||
*
|
||||
* This directive ensures that any values written to the {@link FormControl}
|
||||
* This directive ensures that any values written to the `FormControl`
|
||||
* instance programmatically will be written to the DOM element (model -> view). Conversely,
|
||||
* any values written to the DOM element through user input will be reflected in the
|
||||
* {@link FormControl} instance (view -> model).
|
||||
* `FormControl` instance (view -> model).
|
||||
*
|
||||
* Use this directive if you'd like to create and manage a {@link FormControl} instance directly.
|
||||
* Simply create a {@link FormControl}, save it to your component class, and pass it into the
|
||||
* {@link FormControlDirective}.
|
||||
* Use this directive if you'd like to create and manage a `FormControl` instance directly.
|
||||
* Simply create a `FormControl`, save it to your component class, and pass it into the
|
||||
* `FormControlDirective`.
|
||||
*
|
||||
* This directive is designed to be used as a standalone control. Unlike {@link FormControlName},
|
||||
* it does not require that your {@link FormControl} instance be part of any parent
|
||||
* {@link FormGroup}, and it won't be registered to any {@link FormGroupDirective} that
|
||||
* This directive is designed to be used as a standalone control. Unlike `FormControlName`,
|
||||
* it does not require that your `FormControl` instance be part of any parent
|
||||
* `FormGroup`, and it won't be registered to any `FormGroupDirective` that
|
||||
* exists above it.
|
||||
*
|
||||
* **Get the value**: the `value` property is always synced and available on the
|
||||
* {@link FormControl} instance. See a full list of available properties in
|
||||
* {@link AbstractControl}.
|
||||
* `FormControl` instance. See a full list of available properties in
|
||||
* `AbstractControl`.
|
||||
*
|
||||
* **Set the value**: You can pass in an initial value when instantiating the {@link FormControl},
|
||||
* **Set the value**: You can pass in an initial value when instantiating the `FormControl`,
|
||||
* or you can set it programmatically later using {@link AbstractControl#setValue setValue} or
|
||||
* {@link AbstractControl#patchValue patchValue}.
|
||||
*
|
||||
|
@ -30,30 +30,30 @@ export const controlNameBinding: any = {
|
||||
/**
|
||||
* @description
|
||||
*
|
||||
* Syncs a {@link FormControl} in an existing {@link FormGroup} to a form control
|
||||
* Syncs a `FormControl` in an existing `FormGroup` to a form control
|
||||
* element by name.
|
||||
*
|
||||
* This directive ensures that any values written to the {@link FormControl}
|
||||
* This directive ensures that any values written to the `FormControl`
|
||||
* instance programmatically will be written to the DOM element (model -> view). Conversely,
|
||||
* any values written to the DOM element through user input will be reflected in the
|
||||
* {@link FormControl} instance (view -> model).
|
||||
* `FormControl` instance (view -> model).
|
||||
*
|
||||
* This directive is designed to be used with a parent {@link FormGroupDirective} (selector:
|
||||
* This directive is designed to be used with a parent `FormGroupDirective` (selector:
|
||||
* `[formGroup]`).
|
||||
*
|
||||
* It accepts the string name of the {@link FormControl} instance you want to
|
||||
* link, and will look for a {@link FormControl} registered with that name in the
|
||||
* closest {@link FormGroup} or {@link FormArray} above it.
|
||||
* It accepts the string name of the `FormControl` instance you want to
|
||||
* link, and will look for a `FormControl` registered with that name in the
|
||||
* closest `FormGroup` or `FormArray` above it.
|
||||
*
|
||||
* **Access the control**: You can access the {@link FormControl} associated with
|
||||
* **Access the control**: You can access the `FormControl` associated with
|
||||
* this directive by using the {@link AbstractControl#get get} method.
|
||||
* Ex: `this.form.get('first');`
|
||||
*
|
||||
* **Get value**: the `value` property is always synced and available on the {@link FormControl}.
|
||||
* See a full list of available properties in {@link AbstractControl}.
|
||||
* **Get value**: the `value` property is always synced and available on the `FormControl`.
|
||||
* See a full list of available properties in `AbstractControl`.
|
||||
*
|
||||
* **Set value**: You can set an initial value for the control when instantiating the
|
||||
* {@link FormControl}, or you can set it programmatically later using
|
||||
* `FormControl`, or you can set it programmatically later using
|
||||
* {@link AbstractControl#setValue setValue} or {@link AbstractControl#patchValue patchValue}.
|
||||
*
|
||||
* **Listen to value**: If you want to listen to changes in the value of the control, you can
|
||||
@ -69,12 +69,12 @@ export const controlNameBinding: any = {
|
||||
*
|
||||
* To see `formControlName` examples with different form control types, see:
|
||||
*
|
||||
* * Radio buttons: {@link RadioControlValueAccessor}
|
||||
* * Selects: {@link SelectControlValueAccessor}
|
||||
* * Radio buttons: `RadioControlValueAccessor`
|
||||
* * Selects: `SelectControlValueAccessor`
|
||||
*
|
||||
* **npm package**: `@angular/forms`
|
||||
*
|
||||
* **NgModule**: {@link ReactiveFormsModule}
|
||||
* **NgModule**: `ReactiveFormsModule`
|
||||
*
|
||||
* ### Use with ngModel
|
||||
*
|
||||
|
@ -25,20 +25,20 @@ export const formDirectiveProvider: any = {
|
||||
/**
|
||||
* @description
|
||||
*
|
||||
* Binds an existing {@link FormGroup} to a DOM element.
|
||||
* Binds an existing `FormGroup` to a DOM element.
|
||||
*
|
||||
* This directive accepts an existing {@link FormGroup} instance. It will then use this
|
||||
* {@link FormGroup} instance to match any child {@link FormControl}, {@link FormGroup},
|
||||
* and {@link FormArray} instances to child {@link FormControlName}, {@link FormGroupName},
|
||||
* and {@link FormArrayName} directives.
|
||||
* This directive accepts an existing `FormGroup` instance. It will then use this
|
||||
* `FormGroup` instance to match any child `FormControl`, `FormGroup`,
|
||||
* and `FormArray` instances to child `FormControlName`, `FormGroupName`,
|
||||
* and `FormArrayName` directives.
|
||||
*
|
||||
* **Set value**: You can set the form's initial value when instantiating the
|
||||
* {@link FormGroup}, or you can set it programmatically later using the {@link FormGroup}'s
|
||||
* `FormGroup`, or you can set it programmatically later using the `FormGroup`'s
|
||||
* {@link AbstractControl#setValue setValue} or {@link AbstractControl#patchValue patchValue}
|
||||
* methods.
|
||||
*
|
||||
* **Listen to value**: If you want to listen to changes in the value of the form, you can subscribe
|
||||
* to the {@link FormGroup}'s {@link AbstractControl#valueChanges valueChanges} event. You can also
|
||||
* to the `FormGroup`'s {@link AbstractControl#valueChanges valueChanges} event. You can also
|
||||
* listen to its {@link AbstractControl#statusChanges statusChanges} event to be notified when the
|
||||
* validation status is re-calculated.
|
||||
*
|
||||
@ -54,7 +54,7 @@ export const formDirectiveProvider: any = {
|
||||
*
|
||||
* **npm package**: `@angular/forms`
|
||||
*
|
||||
* **NgModule**: {@link ReactiveFormsModule}
|
||||
* **NgModule**: `ReactiveFormsModule`
|
||||
*
|
||||
* @stable
|
||||
*/
|
||||
|
@ -26,30 +26,30 @@ export const formGroupNameProvider: any = {
|
||||
/**
|
||||
* @description
|
||||
*
|
||||
* Syncs a nested {@link FormGroup} to a DOM element.
|
||||
* Syncs a nested `FormGroup` to a DOM element.
|
||||
*
|
||||
* This directive can only be used with a parent {@link FormGroupDirective} (selector:
|
||||
* This directive can only be used with a parent `FormGroupDirective` (selector:
|
||||
* `[formGroup]`).
|
||||
*
|
||||
* It accepts the string name of the nested {@link FormGroup} you want to link, and
|
||||
* will look for a {@link FormGroup} registered with that name in the parent
|
||||
* {@link FormGroup} instance you passed into {@link FormGroupDirective}.
|
||||
* It accepts the string name of the nested `FormGroup` you want to link, and
|
||||
* will look for a `FormGroup` registered with that name in the parent
|
||||
* `FormGroup` instance you passed into `FormGroupDirective`.
|
||||
*
|
||||
* Nested form groups can come in handy when you want to validate a sub-group of a
|
||||
* form separately from the rest or when you'd like to group the values of certain
|
||||
* controls into their own nested object.
|
||||
*
|
||||
* **Access the group**: You can access the associated {@link FormGroup} using the
|
||||
* **Access the group**: You can access the associated `FormGroup` using the
|
||||
* {@link AbstractControl#get get} method. Ex: `this.form.get('name')`.
|
||||
*
|
||||
* You can also access individual controls within the group using dot syntax.
|
||||
* Ex: `this.form.get('name.first')`
|
||||
*
|
||||
* **Get the value**: the `value` property is always synced and available on the
|
||||
* {@link FormGroup}. See a full list of available properties in {@link AbstractControl}.
|
||||
* `FormGroup`. See a full list of available properties in `AbstractControl`.
|
||||
*
|
||||
* **Set the value**: You can set an initial value for each child control when instantiating
|
||||
* the {@link FormGroup}, or you can set it programmatically later using
|
||||
* the `FormGroup`, or you can set it programmatically later using
|
||||
* {@link AbstractControl#setValue setValue} or {@link AbstractControl#patchValue patchValue}.
|
||||
*
|
||||
* **Listen to value**: If you want to listen to changes in the value of the group, you can
|
||||
@ -97,37 +97,37 @@ export const formArrayNameProvider: any = {
|
||||
/**
|
||||
* @description
|
||||
*
|
||||
* Syncs a nested {@link FormArray} to a DOM element.
|
||||
* Syncs a nested `FormArray` to a DOM element.
|
||||
*
|
||||
* This directive is designed to be used with a parent {@link FormGroupDirective} (selector:
|
||||
* This directive is designed to be used with a parent `FormGroupDirective` (selector:
|
||||
* `[formGroup]`).
|
||||
*
|
||||
* It accepts the string name of the nested {@link FormArray} you want to link, and
|
||||
* will look for a {@link FormArray} registered with that name in the parent
|
||||
* {@link FormGroup} instance you passed into {@link FormGroupDirective}.
|
||||
* It accepts the string name of the nested `FormArray` you want to link, and
|
||||
* will look for a `FormArray` registered with that name in the parent
|
||||
* `FormGroup` instance you passed into `FormGroupDirective`.
|
||||
*
|
||||
* Nested form arrays can come in handy when you have a group of form controls but
|
||||
* you're not sure how many there will be. Form arrays allow you to create new
|
||||
* form controls dynamically.
|
||||
*
|
||||
* **Access the array**: You can access the associated {@link FormArray} using the
|
||||
* {@link AbstractControl#get get} method on the parent {@link FormGroup}.
|
||||
* **Access the array**: You can access the associated `FormArray` using the
|
||||
* {@link AbstractControl#get get} method on the parent `FormGroup`.
|
||||
* Ex: `this.form.get('cities')`.
|
||||
*
|
||||
* **Get the value**: the `value` property is always synced and available on the
|
||||
* {@link FormArray}. See a full list of available properties in {@link AbstractControl}.
|
||||
* `FormArray`. See a full list of available properties in `AbstractControl`.
|
||||
*
|
||||
* **Set the value**: You can set an initial value for each child control when instantiating
|
||||
* the {@link FormArray}, or you can set the value programmatically later using the
|
||||
* {@link FormArray}'s {@link AbstractControl#setValue setValue} or
|
||||
* the `FormArray`, or you can set the value programmatically later using the
|
||||
* `FormArray`'s {@link AbstractControl#setValue setValue} or
|
||||
* {@link AbstractControl#patchValue patchValue} methods.
|
||||
*
|
||||
* **Listen to value**: If you want to listen to changes in the value of the array, you can
|
||||
* subscribe to the {@link FormArray}'s {@link AbstractControl#valueChanges valueChanges} event.
|
||||
* subscribe to the `FormArray`'s {@link AbstractControl#valueChanges valueChanges} event.
|
||||
* You can also listen to its {@link AbstractControl#statusChanges statusChanges} event to be
|
||||
* notified when the validation status is re-calculated.
|
||||
*
|
||||
* **Add new controls**: You can add new controls to the {@link FormArray} dynamically by calling
|
||||
* **Add new controls**: You can add new controls to the `FormArray` dynamically by calling
|
||||
* its {@link FormArray#push push} method.
|
||||
* Ex: `this.form.get('cities').push(new FormControl());`
|
||||
*
|
||||
|
Reference in New Issue
Block a user