From d5fabc303d3c2f2f50f1571c8d691ea4baebe081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sun, 30 Aug 2020 00:35:22 -0500 Subject: [PATCH] refactor(forms): remove extra space in error message (#38637) Remove extra whitespace at package/forms/model.ts error messages PR Close #38637 --- packages/forms/src/model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/forms/src/model.ts b/packages/forms/src/model.ts index 20af33769f..0a4a988f9e 100644 --- a/packages/forms/src/model.ts +++ b/packages/forms/src/model.ts @@ -1659,7 +1659,7 @@ export class FormGroup extends AbstractControl { _throwIfControlMissing(name: string): void { if (!Object.keys(this.controls).length) { throw new Error(` - There are no form controls registered with this group yet. If you're using ngModel, + There are no form controls registered with this group yet. If you're using ngModel, you may want to check next tick (e.g. use setTimeout). `); } @@ -2101,7 +2101,7 @@ export class FormArray extends AbstractControl { _throwIfControlMissing(index: number): void { if (!this.controls.length) { throw new Error(` - There are no form controls registered with this array yet. If you're using ngModel, + There are no form controls registered with this array yet. If you're using ngModel, you may want to check next tick (e.g. use setTimeout). `); }