From 5013a7e12dc917ca65e57c018f7e002105d8a717 Mon Sep 17 00:00:00 2001 From: Bill Ludwig Date: Tue, 15 Dec 2020 08:38:55 -0700 Subject: [PATCH] docs: update identity-revealed.directive.ts to use `AbstractControl` instead of `FormGroup` (#40132) Changes example code to accept an `AbstractControl` instead of `FormGroup` in `identityRevealedValidator` function. Closes #40131. PR Close #40132 --- .../src/app/shared/identity-revealed.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/form-validation/src/app/shared/identity-revealed.directive.ts b/aio/content/examples/form-validation/src/app/shared/identity-revealed.directive.ts index a13278295b..3c10d241a8 100644 --- a/aio/content/examples/form-validation/src/app/shared/identity-revealed.directive.ts +++ b/aio/content/examples/form-validation/src/app/shared/identity-revealed.directive.ts @@ -4,7 +4,7 @@ import { AbstractControl, FormGroup, NG_VALIDATORS, ValidationErrors, Validator, // #docregion cross-validation-validator /** A hero's name can't match the hero's alter ego */ -export const identityRevealedValidator: ValidatorFn = (control: FormGroup): ValidationErrors | null => { +export const identityRevealedValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => { const name = control.get('name'); const alterEgo = control.get('alterEgo');