legio-30/src/app/components/contact/contact.component.ts
ztimson 4a196d63f9
Some checks failed
Build Website / Build NPM Project (push) Successful in 1m43s
Build Website / Tag Version (push) Successful in 16s
Build Website / Build & Push Dockerfile (push) Has been cancelled
Updated contact form
2024-01-10 11:14:16 -05:00

26 lines
494 B
TypeScript

import {Component} from '@angular/core';
import {FormBuilder, FormGroup} from '@angular/forms';
@Component({
selector: 'app-contact',
templateUrl: './contact.component.html'
})
export class ContactComponent {
public contact: string = '';
public error = false;
public form!: FormGroup;
constructor(private fb: FormBuilder) {
this.form = fb.group({
email: '',
subject: '',
body: '',
});
}
reset() {
this.error = false;
this.form.reset();
}
}