Apologies for my inexperience with Angular (V12), if I am not explaining my issue clearly. I am facing a problem with the $Event not capturing the custom object data emitted from another component. Upon setting up the function in the parent component, I encounter the error: "error is not assignable to parameter of type 'CustomObj'. Type 'Event' is missing properties like prop1, prop2." Despite seeing my properties successfully stored and passed on during a console.log before emitting, I struggle to display them.
Child Component emission:
onUpdate(myObject: objectInformation)
{
this.edit.emit(myObject);
console.log(this.myObject);
}
Parent component:
HTML
<app-edit-task (edit) = "onEdit($event)"></app-edit-task>
TS
onEdit(myObject: objectInformation){
this.currentObject= myObject;
console.log(this.currentObject);
}