From 0feaaf470a2acc6b9b7a80fdd0f003700e28fb70 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 17 Aug 2020 17:29:50 -0400 Subject: [PATCH] LP1857910 Field doc UI Angular 10 updates Modify the lazy loader to use the new Ang10 style loading syntax. Avoid using template variables as output variables for other components, since template variables (those declared with let-foo="bar" in ) are read-only, possibly as of Ang 10, so the page was not loading at first. Signed-off-by: Bill Erickson --- .../local/field-documentation/field-documentation.component.html | 6 +++--- Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/field-documentation/field-documentation.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/field-documentation/field-documentation.component.html index 481a681c8d..c6ee7bb973 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/field-documentation/field-documentation.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/field-documentation/field-documentation.component.html @@ -33,7 +33,7 @@ - @@ -41,7 +41,7 @@ @@ -49,4 +49,4 @@ - \ No newline at end of file + diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts index d8cb49a8be..d7378ad98d 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts @@ -28,7 +28,8 @@ const routes: Routes = [{ import('./survey/survey.module').then(m => m.SurveyModule) }, { path: 'config/idl_field_doc', - loadChildren: '@eg/staff/admin/local/field-documentation/field-documentation.module#FieldDocumentationModule' + loadChildren: () => import('./field-documentation/field-documentation.module') + .then(m => m.FieldDocumentationModule) }, { path: ':schema/:table', component: BasicAdminPageComponent -- 2.11.0