mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 21:33:02 -05:00
feat: challenge 40 - forms control value accessor
This commit is contained in:
15
apps/forms/control-value-accessor/src/app/app.component.ts
Normal file
15
apps/forms/control-value-accessor/src/app/app.component.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user