app-routing.module.ts 417 B

12345678910111213141516
  1. import { NgModule } from '@angular/core';
  2. import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
  3. const routes: Routes = [
  4. {
  5. path: '',
  6. loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  7. }
  8. ];
  9. @NgModule({
  10. imports: [
  11. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  12. ],
  13. exports: [RouterModule]
  14. })
  15. export class AppRoutingModule {}