- From: Dave Rupert <notifications@github.com>
- Date: Fri, 05 Oct 2018 12:36:47 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 5 October 2018 19:37:09 UTC
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