I have a lightning component with 2 buttons, one of the 2 buttons(add button) calls a 2nd component and displays a table on the screen. Once info is populated into the table it can be submitted or the user can cancel out of it.
In both cases if the use click on the add button again it retains the old values.
I am trying to refresh the child component so it will lose the values using:
(this line was added to the child cmp js controller) but this only refreshes the 1st component with the 2 buttons, the values on the table stay.
How can I update both these components? or just the child component?