Could you please take a look at the link I shared? I am trying to implement a feature where the table gets refreshed whenever an item is added or removed via the API.
In this case, the button for adding data to the table is in a child element, while the table displaying the data is in the parent component. I'm unsure how to trigger a click on the button in the child element to make the parent component reload/refresh.
Here is the link (please note that to add an item, you must first tick the radio button in the UI).