-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.routing.ts
43 lines (41 loc) · 1.1 KB
/
app.routing.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
import { NgModule } from '@angular/core';
import { AdminComponent } from './components/admin/admin/admin.component';
import { HomeComponent } from './components/home/home.component';
const routes: Routes = [
// {
// path: '',
// redirectTo: '/home',
// pathMatch: 'full'
// },
{
path: 'home',
component: HomeComponent
},
{
path: '',
component: AdminComponent,
// children: AdminLayoutRoutes,
children: [
{
path: '',
loadChildren: () => import('./components/admin/admin.module').then((m) => m.AdminModule)
// loadChildren: './components/admin-layout.module#AdminLayoutModule'
}
]
}
// {
// path: 'clients',
// loadChildren: () => import('./components/clients/clients.module').then((m) => m.ClientsModule)
// },
// { path: 'lots', loadChildren: () => import('./components/lots/lots.module').then((m) => m.LotsModule) }
];
@NgModule({
imports: [
RouterModule.forRoot(routes, {
preloadingStrategy: PreloadAllModules
})
],
exports: [ RouterModule ]
})
export class FeatureRoutingModule {}