From 2f6dac700374ff302ea6e234d0e818f1dba4a91d Mon Sep 17 00:00:00 2001 From: Choubani Amir Date: Sat, 9 Sep 2023 12:50:59 +0200 Subject: [PATCH] Update tutorial.md --- libs/mf/tutorial/tutorial.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libs/mf/tutorial/tutorial.md b/libs/mf/tutorial/tutorial.md index 83da319f..0fc39fe4 100644 --- a/libs/mf/tutorial/tutorial.md +++ b/libs/mf/tutorial/tutorial.md @@ -239,15 +239,12 @@ So far, we just hardcoded the URLs pointing to our Micro Frontends. However, in ```typescript import { loadManifest } from '@angular-architects/module-federation'; - ``` - -loadManifest('assets/mf.manifest.json') -.catch((err) => console.error('Error loading remote entries', err)) -.then(() => import('./bootstrap')) -.catch((err) => console.error(err)); - -```` + loadManifest('assets/mf.manifest.json') + .catch((err) => console.error('Error loading remote entries', err)) + .then(() => import('./bootstrap')) + .catch((err) => console.error(err)); + ``` The imported `loadManifest` function also loads the remote entry points. 3. Adjust the shell's lazy route pointing to the Micro Frontend as follows (`projects/shell/src/app/app.routes.ts`):