Looking for a solution here:
<app-csv-confirm-dialog *ngIf="false" (confirmUpload)="addDataFromCSV()"></app-csv-confirm-dialog>
addDataFromCSV() {
console.log('hi');
}
In the TypeScript file for csv-confirm-dialog, I have this code:
confirm(): void {
this.confirmUpload.emit();
}
Unfortunately, it seems like the function is not being passed correctly as I'm not seeing 'hi' in the console. Is there a way to still pass the function from the parent to the csv-confirm-dialog even though it needs to be hidden since it's a popup dialog?