From 403f5ce8c83dd57a3fa5e074d5644cc5ead8bcbb 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 Signed-off-by: Jason Etheridge --- .../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 f3ff4e8f1d..e619f6eb79 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 @@ -67,7 +67,8 @@ const routes: Routes = [{ import('./triggers/triggers.module').then(m => m.TriggersModule) }, { 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