18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
import { Component } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { RouterLink } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-contact',
|
|
standalone: true,
|
|
imports: [CommonModule, RouterLink],
|
|
templateUrl: './contact.component.html',
|
|
styleUrls: ['./contact.component.scss']
|
|
})
|
|
export class ContactComponent {
|
|
onSubmit(event: Event) {
|
|
event.preventDefault();
|
|
alert("Thanks for your message! This is a demo form.");
|
|
}
|
|
}
|