File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { Routes } from '@angular/router' ;
2
- import { DefaultLayoutComponent } from './layout' ;
3
2
4
3
export const routes : Routes = [
5
4
{
@@ -9,7 +8,7 @@ export const routes: Routes = [
9
8
} ,
10
9
{
11
10
path : '' ,
12
- component : DefaultLayoutComponent ,
11
+ loadComponent : ( ) => import ( './layout' ) . then ( m => m . DefaultLayoutComponent ) ,
13
12
data : {
14
13
title : 'Home'
15
14
} ,
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export const routes: Routes = [
84
84
} ,
85
85
{
86
86
path : 'progress' ,
87
- loadComponent : ( ) => import ( './progress/progress.component' ) . then ( m => m . ProgressComponent ) ,
87
+ loadComponent : ( ) => import ( './progress/progress.component' ) . then ( m => m . AppProgressComponent ) ,
88
88
data : {
89
89
title : 'Progress'
90
90
}
Original file line number Diff line number Diff line change 1
1
import { Routes } from '@angular/router' ;
2
2
3
- import { ChartsComponent } from './charts.component' ;
4
-
5
- export const routes : Routes = [
6
- {
7
- path : '' ,
8
- component : ChartsComponent ,
9
- data : {
10
- title : 'Charts'
11
- }
3
+ export const routes : Routes = [ {
4
+ path : '' , loadComponent : ( ) => import ( './charts.component' ) . then ( m => m . ChartsComponent ) , data : {
5
+ title : 'Charts'
12
6
}
13
- ] ;
7
+ } ] ;
You can’t perform that action at this time.
0 commit comments