- From: S.A.N <notifications@github.com>
- Date: Fri, 25 Sep 2015 14:53:39 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Friday, 25 September 2015 21:54:06 UTC
It will be very useful to describe the import attribute in custom element.
Example: index.html
```HTML
<custom-button import="MyClassButton from '/url/buttons.html'"></custom-button>
```
Example: /url/buttons.html'
```HTML
<style>
...
</style>
<script>
export class MyClassButton extends HTMLButtonElement
{
... Synchronous constructor and other API
}
</script>
```
User agent, automatically loading file and register element.
---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/329
Received on Friday, 25 September 2015 21:54:06 UTC