- From: Hayato Ito <notifications@github.com>
- Date: Mon, 14 Sep 2015 04:11:34 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 14 September 2015 11:12:04 UTC
For clarification, the main concern is about *re-distribution*.
Suppose that there is an existing `v0-component` that selects nodes by `<content>`:
```html
<v0-component>'s shadow tree:
....
<content select="xxx"></content>
...
```
If another developer want to create `v1-component` that uses `v0-component`, as a third party library, by a *composition*:
```html
<link rel=import href="third_party/v0-component.html'>
<v1-component>'s shadow tree:
<slot name="aaa"></slot>
<v0-component>
<slot name="bbb"></slot> # I want to pass nodes to v0-component, via *redistribution*.
</v0-component>
```
`v1-component` is used as usual as follows:
```html
<html>
...
<link rel=import href="v1-component.html">
...
<v1-component>
<div slot=aaa>...</div>
<xxx slot=bbb>...</div>
</v1-component>
</html>
````
---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/130#issuecomment-140041603
Received on Monday, 14 September 2015 11:12:04 UTC