app-routing.module.ts 917 B

1234567891011121314151617181920212223242526272829303132
  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. path: 'user',
  10. loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
  11. },
  12. {
  13. path: 'aigc',
  14. loadChildren: () => import('../modules/aigc/aigc.module').then(m => m.AigcModule)
  15. }, {
  16. path: 'tsdatatype',
  17. loadChildren: () => import('./tsdatatype/tsdatatype.module').then( m => m.TsdatatypePageModule)
  18. },
  19. {
  20. path: 'slider',
  21. loadChildren: () => import('./slider/slider.module').then( m => m.SliderPageModule)
  22. }
  23. ];
  24. @NgModule({
  25. imports: [
  26. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  27. ],
  28. exports: [RouterModule]
  29. })
  30. export class AppRoutingModule {}