- From: Rob Eisenberg <notifications@github.com>
- Date: Thu, 09 May 2024 20:29:52 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 10 May 2024 03:29:56 UTC
I could see enabling decoupled import and define but I also would prefer to be able to do it in one go. That seems like it would be the most common need: ```html <import src="./some-module.html#MyElement" tag="my-element"> <my-element>Hello</my-element> <my-element>World</my-element> ``` I think I would also want to be able to import and use a template in one go as well. ```html <template src="./some-module.html#myTemplate"> Fallback content while the template is being loaded. </template> ``` Could we get this working for declarative shadow dom too? ```html <template id="helloTemplate">Hello <slot></slot>!</template> <say-hello> <template shadowrootmode="open" src="#helloTemplate"></template> World </say-hello> <say-hello> <template shadowrootmode="open" src="#helloTemplate"></template> Web Components </say-hello> ``` -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1059#issuecomment-2103792418 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1059/2103792418@github.com>
Received on Friday, 10 May 2024 03:29:56 UTC