@todojs/

example

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • components
  • loadComponent.js

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5253969184470035","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogIDx0aXRsZT5FeGFtcGxlPC90aXRsZT4KICAgIDxzY3JpcHQgc3JjPSJodHRwczovL3VucGtnLmNvbS9Ad2ViY29tcG9uZW50cy93ZWJjb21wb25lbnRzanMvd2ViY29tcG9uZW50cy1sb2FkZXIuanMiPjwvc2NyaXB0PgogIDxzY3JpcHQgdHlwZT0ibW9kdWxlIj4KICAgIGltcG9ydCBsb2FkQ29tcG9uZW50IGZyb20gJy4vbG9hZENvbXBvbmVudC5qcyc7CiAgICBsb2FkQ29tcG9uZW50KCcuL2NvbXBvbmVudHMvd2MtY291bnRyaWVzLmh0bWwnKTsKICA8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keT4KPHdjLWNvdW50cmllcz48L3djLWNvdW50cmllcz4KPC9ib2R5Pgo8L2h0bWw+"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example</title>
    <script src="https://unpkg.com/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
  <script type="module">
    import loadComponent from './loadComponent.js';
    loadComponent('./components/wc-countries.html');
  </script>
</head>
<body>
<wc-countries></wc-countries>
</body>
</html>
result
console