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:
parent
ebc0e46501
commit
d5fabc303d
|
@ -1659,7 +1659,7 @@ export class FormGroup extends AbstractControl {
|
||||||
_throwIfControlMissing(name: string): void {
|
_throwIfControlMissing(name: string): void {
|
||||||
if (!Object.keys(this.controls).length) {
|
if (!Object.keys(this.controls).length) {
|
||||||
throw new Error(`
|
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).
|
you may want to check next tick (e.g. use setTimeout).
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
@ -2101,7 +2101,7 @@ export class FormArray extends AbstractControl {
|
||||||
_throwIfControlMissing(index: number): void {
|
_throwIfControlMissing(index: number): void {
|
||||||
if (!this.controls.length) {
|
if (!this.controls.length) {
|
||||||
throw new Error(`
|
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).
|
you may want to check next tick (e.g. use setTimeout).
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue