-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (25 loc) · 1.16 KB
/
index.html
File metadata and controls
26 lines (25 loc) · 1.16 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>single-spa</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/" />
</head>
<body>
<script src="https://unpkg.com/single-spa/lib/umd/single-spa.min.js"></script>
<script src="https://unpkg.com/zone.js"></script>
<script src="/search/dist/search/main.js"></script>
<script src="/patientinfo/dist/patientinfo/main.js"></script>
<script src="/spaauth/dist/spaauth/main.js"></script>
<script src="/patientdashboard/dist/patientdashboard/main.js"></script>
<script>
singleSpa.registerApplication('spaauth', window.spaauth.default, location => true);
singleSpa.registerApplication('search', window.search.default, location => location.pathname.startsWith('/search'));
singleSpa.registerApplication('patientinfo', window.patientinfo.default, location => location.pathname.startsWith('/patientinfo'));
singleSpa.registerApplication('patientdashboard', window.patientdashboard.default, location => location.pathname.startsWith('/patientdashboard'));
singleSpa.start();
</script>
</body>
</html>