@twobirds/microcomponents
Version:
Micro Components Organization Class
30 lines (29 loc) • 839 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Micro Components Manual Test</title>
<link
rel="icon"
type="image/svg+xml"
sizes="any"
href="./MicroComponents.svg"
/>
<link href="style.css" rel="stylesheet" />
<link href="my-tag.css" rel="stylesheet" />
<link href="grandparent.css" rel="stylesheet" />
<script>
import("./microcomponents.js").then((m) => {
m.autoload(true); // automatically load web components that are undefined
Object.assign(window, m);
});
</script>
<script type="module" src="test.js"></script>
</head>
<body>
<h3>Open debugger (F12), check console...</h3>
<test-grandparent></test-grandparent>
<test-testform _mc="test-testmc"></test-testform>
</body>
</html>