Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions libs/mf/tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,14 @@ So far, we just hardcoded the URLs pointing to our Micro Frontends. However, in

2. Adjust the shell's `main.ts` (`projects/shell/src/main.ts`) as follows:

```typescript
import { loadManifest } from '@angular-architects/module-federation';
```
```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));

````
.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.

Expand Down