Re: [w3c/webcomponents] HTML Modules (#645)

One question that I have after reading the proposal is how would I import and use custom elements in this paradigm?

**import.html**

```html
<template id="myCustomElementTemplate">...</template>
<script type="module">
   // custom Element setup
  window.customElements.define("my-element", myCustomElement);
</script>
```

**main.html**

```html
<my-element> .. </my-element>
<script type="module">
 import { myElement } from "import.html"
 // ???????????????????????????????????????
</script>
```

Would the import just work? Or would there need to be some plumbing?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/645#issuecomment-427476477

Received on Friday, 5 October 2018 19:37:09 UTC