mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
16 lines
413 B
TypeScript
16 lines
413 B
TypeScript
import { Component } from '@angular/core';
|
|
import { FeedbackFormComponent } from './feedback-form/feedback-form.component';
|
|
|
|
@Component({
|
|
imports: [FeedbackFormComponent],
|
|
selector: 'app-root',
|
|
template: `
|
|
<app-feedback-form (feedBackSubmit)="apiCall($event)"></app-feedback-form>
|
|
`,
|
|
})
|
|
export class AppComponent {
|
|
apiCall(event: Record<string, string | null>): void {
|
|
console.log(event);
|
|
}
|
|
}
|