From 07153f7e7f440f0c76c1be52ea0784f313c96356 Mon Sep 17 00:00:00 2001 From: Linskeyd Date: Wed, 6 Sep 2017 23:41:03 -0700 Subject: [PATCH] docs(aio): provide link text for AbstractControl references in reactive directives for forms Closes #17484 --- .../reactive_directives/form_control_directive.ts | 8 ++++---- .../directives/reactive_directives/form_control_name.ts | 8 ++++---- .../reactive_directives/form_group_directive.ts | 9 +++++---- .../directives/reactive_directives/form_group_name.ts | 6 +++--- 4 files changed, 16 insertions(+), 15 deletions(-) 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 2f917b4cd6..6fd76607d2 100644 --- a/packages/forms/src/directives/reactive_directives/form_control_directive.ts +++ b/packages/forms/src/directives/reactive_directives/form_control_directive.ts @@ -45,12 +45,12 @@ export const formControlBinding: any = { * {@link AbstractControl}. * * **Set the value**: You can pass in an initial value when instantiating the {@link FormControl}, - * or you can set it programmatically later using {@link AbstractControl#setValue} or - * {@link AbstractControl#patchValue}. + * 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 - * subscribe to the {@link AbstractControl#valueChanges} event. You can also listen to - * {@link AbstractControl#statusChanges} to be notified when the validation status is + * subscribe to the {@link AbstractControl#valueChanges valueChanges} event. You can also listen to + * {@link AbstractControl#statusChanges statusChanges} to be notified when the validation status is * re-calculated. * * ### Example 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 4676b7fbf6..61b89cf863 100644 --- a/packages/forms/src/directives/reactive_directives/form_control_name.ts +++ b/packages/forms/src/directives/reactive_directives/form_control_name.ts @@ -45,7 +45,7 @@ export const controlNameBinding: any = { * closest {@link FormGroup} or {@link FormArray} above it. * * **Access the control**: You can access the {@link FormControl} associated with - * this directive by using the {@link AbstractControl#get} method. + * 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}. @@ -53,11 +53,11 @@ export const controlNameBinding: any = { * * **Set value**: You can set an initial value for the control when instantiating the * {@link FormControl}, or you can set it programmatically later using - * {@link AbstractControl#setValue} or {@link AbstractControl#patchValue}. + * {@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 - * subscribe to the {@link AbstractControl#valueChanges} event. You can also listen to - * {@link AbstractControl#statusChanges} to be notified when the validation status is + * subscribe to the {@link AbstractControl#valueChanges valueChanges} event. You can also listen to + * {@link AbstractControl#statusChanges statusChanges} to be notified when the validation status is * re-calculated. * * ### Example 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 4162cbef8d..40ad30b26c 100644 --- a/packages/forms/src/directives/reactive_directives/form_group_directive.ts +++ b/packages/forms/src/directives/reactive_directives/form_group_directive.ts @@ -34,12 +34,13 @@ export const formDirectiveProvider: any = { * * **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 - * {@link AbstractControl#setValue} or {@link AbstractControl#patchValue} methods. + * {@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} event. You can also listen to - * its {@link AbstractControl#statusChanges} event to be notified when the validation status is - * re-calculated. + * to the {@link 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. * * Furthermore, you can listen to the directive's `ngSubmit` event to be notified when the user has * triggered a form submission. The `ngSubmit` event will be emitted with the original form 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 6be89003e3..b955c3b06d 100644 --- a/packages/forms/src/directives/reactive_directives/form_group_name.ts +++ b/packages/forms/src/directives/reactive_directives/form_group_name.ts @@ -50,11 +50,11 @@ export const formGroupNameProvider: any = { * * **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 - * {@link AbstractControl#setValue} or {@link AbstractControl#patchValue}. + * {@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 - * subscribe to the {@link AbstractControl#valueChanges} event. You can also listen to - * {@link AbstractControl#statusChanges} to be notified when the validation status is + * subscribe to the {@link AbstractControl#valueChanges valueChanges} event. You can also listen to + * {@link AbstractControl#statusChanges statusChanges} to be notified when the validation status is * re-calculated. * * ### Example