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 11import { Routes } from '@angular/router' ;
2- import { DefaultLayoutComponent } from './layout' ;
32
43export const routes : Routes = [
54 {
@@ -9,7 +8,7 @@ export const routes: Routes = [
98 } ,
109 {
1110 path : '' ,
12- component : DefaultLayoutComponent ,
11+ loadComponent : ( ) => import ( './layout' ) . then ( m => m . DefaultLayoutComponent ) ,
1312 data : {
1413 title : 'Home'
1514 } ,
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export const routes: Routes = [
8484 } ,
8585 {
8686 path : 'progress' ,
87- loadComponent : ( ) => import ( './progress/progress.component' ) . then ( m => m . ProgressComponent ) ,
87+ loadComponent : ( ) => import ( './progress/progress.component' ) . then ( m => m . AppProgressComponent ) ,
8888 data : {
8989 title : 'Progress'
9090 }
Original file line number Diff line number Diff line change 11import { Routes } from '@angular/router' ;
22
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'
126 }
13- ] ;
7+ } ] ;
You can’t perform that action at this time.
0 commit comments