I have four tabs, currently i am loading all the four tabs using angular material with content from REST api call.
As per the requirement i need to change like below:
Currently i am loading all the tabs and while hiding the tabs; i am getting below error like data for the 4 other grids are undefined
It is stucking on debugging the code on $scope.gridApi.grid.options.totalItems = res.data.numFound; post getting the external paginated data from backend.
How can we achieve the loading of tabs dynamically and also when it is loaded can be reused if moved from any of the loaded tabs links inside?
Appreciate your help!
Diego Bernal
Front-End Engineer
Do you have a jsfiddle?
I can't be sure as I don't understand the question fully but maybe you can have a state for each tab? That way content can be loaded per tab based on the state that is activated