app-routing.module.ts 877 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { AppComponent } from './app.component';
  4. const routes: Routes = [
  5. {
  6. path: '',
  7. component: AppComponent,
  8. children: [
  9. {
  10. path: '',
  11. loadChildren: () =>
  12. import('./landing-page/landing-page.module').then(
  13. (m) => m.LandingPageModule
  14. ),
  15. },
  16. {
  17. path: 'auth',
  18. loadChildren: () =>
  19. import('./authentication/authentication.module').then(
  20. (m) => m.AuthenticationModule
  21. ),
  22. },
  23. {
  24. path: 'modules',
  25. loadChildren: () =>
  26. import('./modules/modules.module').then((m) => m.ModulesModule),
  27. },
  28. ],
  29. },
  30. ];
  31. @NgModule({
  32. imports: [RouterModule.forRoot(routes)],
  33. exports: [RouterModule],
  34. })
  35. export class AppRoutingModule {}