@@ -78,7 +78,7 @@ function getCompetencyLearningPlansRoutes(): Routes {
7878 {
7979 path : '' ,
8080 loadComponent : ( ) => import ( './pages/planlist/planlist' ) ,
81- children : [
81+ loadChildren : ( ) => [
8282 {
8383 path : `:planId/${ ADDON_COMPETENCY_COMPETENCIES_PAGE } ` ,
8484 loadComponent : ( ) => import ( './pages/plan/plan' ) ,
@@ -88,7 +88,7 @@ function getCompetencyLearningPlansRoutes(): Routes {
8888 {
8989 path : `:planId/${ ADDON_COMPETENCY_COMPETENCIES_PAGE } ` ,
9090 loadComponent : ( ) => import ( './pages/competencies/competencies' ) ,
91- children : [
91+ loadChildren : ( ) => [
9292 {
9393 path : ':competencyId' ,
9494 loadComponent : ( ) => import ( './pages/competency/competency' ) ,
@@ -128,7 +128,7 @@ function getCompetencyCourseDetailsRoutes(): Routes {
128128 {
129129 path : '' ,
130130 loadComponent : ( ) => import ( './pages/competencies/competencies' ) ,
131- children : [
131+ loadChildren : ( ) => [
132132 {
133133 path : ':competencyId' ,
134134 loadComponent : ( ) => import ( './pages/competency/competency' ) ,
@@ -150,15 +150,15 @@ function getCompetencyCourseDetailsRoutes(): Routes {
150150const mainMenuChildrenRoutes : Routes = [
151151 {
152152 path : ADDON_COMPETENCY_LEARNING_PLANS_PAGE ,
153- children : getCompetencyLearningPlansRoutes ( ) ,
153+ loadChildren : ( ) => getCompetencyLearningPlansRoutes ( ) ,
154154 } ,
155155 {
156156 path : `${ CORE_COURSE_PAGE_NAME } /:courseId/${ ADDON_COMPETENCY_COMPETENCIES_PAGE } ` ,
157- children : getCompetencyCourseDetailsRoutes ( ) ,
157+ loadChildren : ( ) => getCompetencyCourseDetailsRoutes ( ) ,
158158 } ,
159159 {
160160 path : `${ CORE_COURSE_PAGE_NAME } /:courseId/${ PARTICIPANTS_PAGE_NAME } /:userId/${ ADDON_COMPETENCY_COMPETENCIES_PAGE } ` ,
161- children : getCompetencyCourseDetailsRoutes ( ) ,
161+ loadChildren : ( ) => getCompetencyCourseDetailsRoutes ( ) ,
162162 } ,
163163] ;
164164
0 commit comments