feat: challenge 40 - forms control value accessor

This commit is contained in:
Stanislav
2023-12-07 23:26:05 +03:00
parent b16479251b
commit 29abc233d1
29 changed files with 509 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
import { Component } from '@angular/core';
import { FeedbackFormComponent } from './feedback-form/feedback-form.component';
@Component({
standalone: true,
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);
}
}