Skip to content

Commit

Permalink
docs(forms): fix typos in removeValidators and hasValidator usage not…
Browse files Browse the repository at this point in the history
…es (#48144)

PR Close #48144
  • Loading branch information
Wooshaah authored and dylhunn committed Nov 22, 2022
1 parent 5127a4d commit 7fbb53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/forms/src/model/abstract_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export abstract class AbstractControl<TValue = any, TRawValue extends TValue = T
* const minValidator = Validators.min(3);
* const ctrl = new FormControl<string | null>('', minValidator);
* expect(ctrl.hasValidator(minValidator)).toEqual(true)
* expect(ctrl.hasValidator(Validators.min(3)).toEqual(false)
* expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
*
* ctrl.removeValidators(minValidator);
* ```
Expand Down Expand Up @@ -731,7 +731,7 @@ export abstract class AbstractControl<TValue = any, TRawValue extends TValue = T
* const minValidator = Validators.min(3);
* const ctrl = new FormControl<number | null>(0, minValidator);
* expect(ctrl.hasValidator(minValidator)).toEqual(true)
* expect(ctrl.hasValidator(Validators.min(3)).toEqual(false)
* expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
* ```
*
* @param validator The validator to check for presence. Compared by function reference.
Expand Down

0 comments on commit 7fbb53f

Please sign in to comment.