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]], }); }