LP#1852321: (follow-up) modernize loadChildren invocation
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 10 Mar 2021 22:01:27 +0000 (17:01 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 10 Mar 2021 22:01:27 +0000 (17:01 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts

index 0819945..c7ec59f 100644 (file)
@@ -26,7 +26,8 @@ const routes: Routes = [{
         fieldOrder: 'owning_lib,name,opac_visible,circulate,holdable,hold_verify,checkin_alert,deleted,label_prefix,label_suffix,url,id'}]
 }, {
     path: 'asset/shelving_location_groups',
-    loadChildren: '@eg/staff/admin/local/shelving_location_groups/shelving_location_groups.module#ShelvingLocationGroupsModule'
+    loadChildren: () =>
+      import('./shelving_location_groups/shelving_location_groups.module').then(m => m.ShelvingLocationGroupsModule)
 }, {
     path: 'container/carousel',
     component: AdminCarouselComponent