I'm trying to create a table that looks like a spreadsheet with editable inputs inside each td
. I'm using Angular's ComponentFactoryResolver
as explained here, to add a row to the table when user clicks the add button.
Once the row is added, I use EventEmitter
to emit all the data of that row as the last column value is changed.
I've tried to re implement the same functionality on this StackBlitz.
I'm having the following issues:
- I'm unable to emit data from the newly added components. (Check Console)
- Once I add a new row, the first row (not dynamic) also stops giving me the emitted data.
- I'm not sure how to delete a row if user don't needs it as I don't have the reference to it.