File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { HomeComponent } from './modules/home/pages/home.component';
5
5
import { ProjectListComponent } from './modules/projects/components/project-list/project-list.component' ;
6
6
import { ProjectsModule } from './modules/projects/projects.module' ;
7
7
8
+
8
9
export function getProjectModule ( ) { return ProjectsModule } ;
9
10
10
11
const indexRoute : Route = {
@@ -35,7 +36,8 @@ const routes: Routes = [
35
36
} ,
36
37
{
37
38
path : 'projects' ,
38
- loadChildren : getProjectModule ,
39
+ loadChildren : './modules/projects/projects.module#ProjectsModule' ,
40
+ // line above instead of loadChildren: getProjectModule according to: https://github.com/angular/angular-cli/issues/4192#issuecomment-274775116
39
41
canActivate : [ AuthGuard ]
40
42
} ,
41
43
fallbackRoute
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ const routes: Routes = [
41
41
children : [
42
42
{
43
43
path : '' ,
44
- loadChildren : getInformationModule
44
+ loadChildren : '../information/information.module#InformationModule'
45
+ // line above instead of loadChildren: InformationModule according to: https://github.com/angular/angular-cli/issues/4192#issuecomment-274775116
45
46
}
46
47
]
47
48
} ,
You can’t perform that action at this time.
0 commit comments