Create a page “tabs”
HTML of Tabs page
<ion-tabs>
<ion-tab-bar slot="bottom">
<ion-tab-button tab="home">
<span>
<ion-icon class="icon-home"></ion-icon>
<ion-label>HOME</ion-label>
</span>
</ion-tab-button>
<ion-tab-button tab="explore">
<span>
<ion-icon class="icon-loupe-1"></ion-icon>
<ion-label>Explore</ion-label>
</span>
</ion-tab-button>
<ion-tab-button tab="profile">
<span>
<ion-icon class="icon-user"></ion-icon>
<ion-label>Me</ion-label>
</span>
</ion-tab-button>
</ion-tab-bar>
</ion-tabs>
tabs-routing.module
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { TabsPage } from './tabs.page';
const routes: Routes = [
{
path: '',
component: TabsPage,
children: [
{
path: 'home',
children: [
{
path: '',
loadChildren: () =>
import('../home/home.module').then(m => m.HomePageModule)
}
]
},
{
path: 'explore',
children: [
{
path: '',
loadChildren: () =>
import('../explore/explore.module').then(m => m.ExplorePageModule)
}
]
},
{
path: 'profile',
children: [
{
path: '',
loadChildren: () =>
import('../profile/profile.module').then(m => m.ProfilePageModule)
}
]
},
]
},
{
path: '',
redirectTo: '/tabs/home',
pathMatch: 'full'
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class TabsPageRoutingModule { }