Ionic tab view

I need to create a page with tab view , both the tabs and its contents will be dynamic.
In tutorials i saw that , a page is being set as the tab content.
So how should i do this??
Is it possible to call separate div as the tab content instead of a page

Hi,

Yes it’s possible to change the tab content instead of using the NavController to change the page.

To do this you’d need to set a variable and set it so something like currentPage = ‘home’

Then you’d have a (tap) function on the tabs to set the currentPage variable appropriately.

Finally in your HTML you’d simple use an ngIf to display the corresponding content based on the currentPage variable.

Thanks will try that