From 08d6728f1aef3e4b7135227b4ecb20ff50684c9a Mon Sep 17 00:00:00 2001 From: JUNG YI DAM Date: Fri, 30 Sep 2022 04:18:31 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B3=A0=EA=B0=9D=EC=84=BC=ED=84=B0=20?= =?UTF-8?q?=ED=95=84=EC=88=98=EC=9E=85=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../compose/compose/comp-compose.component.html | 3 --- .../customer-registration-compose.component.html | 16 +++++++++++++++- .../customer-registration-compose.component.ts | 8 ++++---- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/app/modules/beteran/compose/compose/comp-compose.component.html b/src/app/modules/beteran/compose/compose/comp-compose.component.html index a44b7ba..8ee40c9 100644 --- a/src/app/modules/beteran/compose/compose/comp-compose.component.html +++ b/src/app/modules/beteran/compose/compose/comp-compose.component.html @@ -32,9 +32,6 @@ 닉네임 - - 닉네임은 필수 입력입니다. - diff --git a/src/app/modules/beteran/compose/compose/customer-registration-compose.component.html b/src/app/modules/beteran/compose/compose/customer-registration-compose.component.html index 80bed4e..1deb45b 100644 --- a/src/app/modules/beteran/compose/compose/customer-registration-compose.component.html +++ b/src/app/modules/beteran/compose/compose/customer-registration-compose.component.html @@ -13,11 +13,18 @@
제목 + + 제목은 필수 입력입니다. + 내용 + + 내용은 필수 입력입니다. +
diff --git a/src/app/modules/beteran/compose/compose/customer-registration-compose.component.ts b/src/app/modules/beteran/compose/compose/customer-registration-compose.component.ts index a24b8fc..ca397eb 100644 --- a/src/app/modules/beteran/compose/compose/customer-registration-compose.component.ts +++ b/src/app/modules/beteran/compose/compose/customer-registration-compose.component.ts @@ -25,7 +25,7 @@ import { MatDialogRef } from '@angular/material/dialog'; ], }) export class CustomerRegistrationComposeComponent implements OnInit { - composeForm!: FormGroup; + customerRegistrationComposeForm!: FormGroup; dataSource = ELEMENT_DATA; columnsToDisplay = ['idx', 'content', 'applicationDate']; @@ -48,9 +48,9 @@ export class CustomerRegistrationComposeComponent implements OnInit { */ ngOnInit(): void { // Create the form - this.composeForm = this._formBuilder.group({ - accountHolder: ['', [Validators.required]], - amount: ['', [Validators.required]], + this.customerRegistrationComposeForm = this._formBuilder.group({ + title: ['', [Validators.required]], + content: ['', [Validators.required]], }); }