Skip to content

Commit

Permalink
fix(doc): typo "formControlErrors" instead of "formGroupErrors" (#100)
Browse files Browse the repository at this point in the history
fix(doc): typo "formControlErrors" instead of "formGroupErrors"
  • Loading branch information
zak-cloudnc authored Sep 30, 2019
2 parents d3c7292 + 071c719 commit 005a8e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,10 @@ Errors are exposed under the key `errors.formGroup` e.g.
<!-- src/readme/password-sub-form.component.html -->

<input type="text" placeholder="Password" [formControlName]="formControlNames.password" />
<mat-error *ngIf="formControlErrors?.password?.minlength">Password too short</mat-error>
<mat-error *ngIf="formGroupErrors?.password?.minlength">Password too short</mat-error>

<input type="text" placeholder="Repeat Password" [formControlName]="formControlNames.passwordRepeat" />
<mat-error *ngIf="formControlErrors?.formGroup?.passwordsMustMatch">Passwords do not match</mat-error>
<mat-error *ngIf="formGroupErrors?.formGroup?.passwordsMustMatch">Passwords do not match</mat-error>
```

## Be aware of
Expand Down
4 changes: 2 additions & 2 deletions src/readme/password-sub-form.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<input type="text" placeholder="Password" [formControlName]="formControlNames.password" />
<mat-error *ngIf="formControlErrors?.password?.minlength">Password too short</mat-error>
<mat-error *ngIf="formGroupErrors?.password?.minlength">Password too short</mat-error>

<input type="text" placeholder="Repeat Password" [formControlName]="formControlNames.passwordRepeat" />
<mat-error *ngIf="formControlErrors?.formGroup?.passwordsMustMatch">Passwords do not match</mat-error>
<mat-error *ngIf="formGroupErrors?.formGroup?.passwordsMustMatch">Passwords do not match</mat-error>

0 comments on commit 005a8e5

Please sign in to comment.