From 2bf76e87c8c04add1bc714b93f5de72df6115dcd Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Sat, 7 Sep 2019 21:33:49 -0400 Subject: [PATCH] Update form group name to conform to Name interface --- apps/baseline/src/app/app.component.html | 2 +- apps/global-form/src/app/app.component.html | 2 +- libs/contact/src/lib/services/contact-form.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/baseline/src/app/app.component.html b/apps/baseline/src/app/app.component.html index 8d7431e..7ae0d92 100644 --- a/apps/baseline/src/app/app.component.html +++ b/apps/baseline/src/app/app.component.html @@ -1,5 +1,5 @@
- +
diff --git a/apps/global-form/src/app/app.component.html b/apps/global-form/src/app/app.component.html index 5cc6f3d..d8c6a21 100644 --- a/apps/global-form/src/app/app.component.html +++ b/apps/global-form/src/app/app.component.html @@ -1,5 +1,5 @@ - +
diff --git a/libs/contact/src/lib/services/contact-form.service.ts b/libs/contact/src/lib/services/contact-form.service.ts index 175160c..67be0f9 100644 --- a/libs/contact/src/lib/services/contact-form.service.ts +++ b/libs/contact/src/lib/services/contact-form.service.ts @@ -14,7 +14,7 @@ export class ContactFormService { const addresses: FormArray = this.fb.array([]); const group = this.fb.group({ - nameGroup: this.fb.group({ + name: this.fb.group({ firstName: [name ? name.firstName : ''], lastName: [name ? name.lastName : ''], middleName: [name ? name.middleName : ''],