### File

`src/app/tabs/tabs-routing.module.ts`

    import { NgModule } from '@angular/core';
    import { RouterModule, Routes } from '@angular/router';
    import { TabsPage } from './tabs.page';

    const routes: Routes = [
      {
        path: 'tabs',
        component: TabsPage,
        children: [
          {
            path: 'home',
            loadChildren: () => "import('../home/home.module').then(m => m.HomePageModule)"
          },
          {
            path: 'tasks',
            loadChildren: () => "import('../tasks/tasks.module').then(m => m.TasksPageModule)"
          },
          {
            path: 'services',
            loadChildren: () => "import('../services/services.module').then(m => m.ServicesPageModule)"
          },
          {
            path: 'profile',
            loadChildren: () => "import('../profile/profile.module').then(m => m.ProfilePageModule)"
          },
          {
            path: '',
            redirectTo: '/tabs/home',
            pathMatch: 'full'
          }
        ]
      },
      {
        path: '',
        redirectTo: '/tabs/home',
        pathMatch: 'full'
      }
    ];

    @NgModule({
      imports: [RouterModule.forChild(routes)],
      exports: [RouterModule]
    })
    export class TabsPageRoutingModule {}

# results matching ""

# No results matching ""