Angular - Component Interaction
Given this parent and child component code, what will be logged when the child emits an event?
Child component TS:
@Output() notify = new EventEmitter();
sendNotification() { this.notify.emit('Hello'); }
Parent component template:
<child-comp (notify)="onNotify($event)"></child-comp>
Parent component TS:
onNotify(message: string) { console.log(message); }
