1234567891011121314151617181920212223242526272829303132333435363738 |
- import { NgModule } from '@angular/core';
- import { RouterModule, Routes } from '@angular/router';
- import { AppComponent } from './app.component';
- const routes: Routes = [
- {
- path: '',
- component: AppComponent,
- children: [
- {
- path: '',
- loadChildren: () =>
- import('./landing-page/landing-page.module').then(
- (m) => m.LandingPageModule
- ),
- },
- {
- path: 'auth',
- loadChildren: () =>
- import('./authentication/authentication.module').then(
- (m) => m.AuthenticationModule
- ),
- },
- {
- path: 'modules',
- loadChildren: () =>
- import('./modules/modules.module').then((m) => m.ModulesModule),
- },
- ],
- },
- ];
- @NgModule({
- imports: [RouterModule.forRoot(routes)],
- exports: [RouterModule],
- })
- export class AppRoutingModule {}
|