-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
34 lines (33 loc) · 1.15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Micro Frontends with ESM</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="mfe_logo.png">
</head>
<body>
<host-mfe></host-mfe>
</body>
<script type="importmap">
{
"imports": {
"rxjs": "https://cdn.skypack.dev/rxjs",
"rxjs/operators": "https://cdn.skypack.dev/rxjs/operators",
"@angular/core": "/dist/core.js",
"@angular/common": "/dist/common.js",
"@angular/platform-browser": "/dist/platform-browser.js",
"@angular-mfe/shared": "/dist/shared/fesm2015/angular-mfe-shared.mjs",
"@angular-mfe/first": "/dist/first/fesm2015/angular-mfe-first.mjs",
"@angular-mfe/second": "/dist/second/fesm2015/angular-mfe-second.mjs",
"@angular-mfe/host": "/dist/host/fesm2015/angular-mfe-host.mjs"
}
}
</script>
<script type="module" src="https://cdn.skypack.dev/[email protected]"></script>
<script type="module">
import {platformBrowser} from "@angular/platform-browser";
import {ModuleMfeModule} from "@angular-mfe/host";
platformBrowser().bootstrapModule(ModuleMfeModule);
</script>
</html>