I am trying to implement to pivot component.
Requirement: On tab click, I want to load the pivot component. Whatever the data comes from the response bind to the pivot view.
I have load the pivot view on ngOnIt() function with sample data. When i click on another tab and the repsonse comes from the API, i need to map those data on the pivot view data source setting. But it is referring to the old data which is loaded on ngOnIt.