refactor(forms): remove extra space in error message (#38637)

Remove extra whitespace at package/forms/model.ts error messages

PR Close #38637
This commit is contained in:
Juan José Arboleda 2020-08-30 00:35:22 -05:00 committed by Joey Perrott
parent ebc0e46501
commit d5fabc303d
1 changed files with 2 additions and 2 deletions

View File

@ -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).
`);
}