### File

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

    import { NgModule } from '@angular/core';
    import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

    const routes: Routes = [
      {
        path: '',
        loadChildren: () => "import('./tabs/tabs.module').then(m => m.TabsPageModule)"
      },
      {
        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)"
      }
    ];
    @NgModule({
      imports: [
        RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
      ],
      exports: [RouterModule]
    })
    export class AppRoutingModule {}

# results matching ""

# No results matching ""