In parent component, I have lightning:TabSet tag. In this tag I have child component name 'createTab' and in its JS controller I am creating three child component using $A.createComponent method that will correspond to three tabs.
My requirement is when I am on second tab, I select some record -> click on button and save selected record to DB. When I click on third tab, I want to get the records that I selected in second tab. (Third tab only show record when I refresh the page). But I want that when I select record on second tab, click button and navigate to third tab, it should show the latest record selected without hitting refresh.
In init method of third component js file, I am getting record. So I just want to inovke the init method of third component when third tab is clicked. But init is not invoked becasue component are already loaded in start.
Any help would be appreciated.