Skip to content

Commit 15fe03a

Browse files
committed
resolved bug with webpack
angular/angular-cli#9825
1 parent b7d3a5a commit 15fe03a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/routes.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
import { Routes } from '@angular/router';
22
import {NotFoundPageComponent} from './core/containers/not-found-page/not-found-page.component';
33
import {AuthGuard} from './auth/services/auth-guard.service';
4+
import {UserPanelModule} from './user-panel/user-panel.module';
5+
import {MainWallModule} from './main-wall/main-wall.module';
46

57
export const routes: Routes = [
68
{ path: '', redirectTo: '/main-wall', pathMatch: 'full' },
79
{
810
path: 'main-wall',
9-
loadChildren: './main-wall/main-wall.module#MainWallModule',
11+
loadChildren: () => MainWallModule,
12+
// loadChildren: './main-wall/main-wall.module#MainWallModule',
1013
canActivate: [AuthGuard],
1114
},
1215
{
1316
path: 'user-panel',
14-
loadChildren: './user-panel/user-panel.module#UserPanelModule',
17+
loadChildren: () => UserPanelModule,
18+
// loadChildren: './user-panel/user-panel.module#UserPanelModule',
1519
canActivate: [AuthGuard],
1620
},
1721
{ path: '**', component: NotFoundPageComponent },

0 commit comments

Comments
 (0)