Suppose a component is composed of 3 internal components, where <outer-tag>
's shadow DOM looks something like this:
<div>
<h1>The Outer Tag</h1>
<my-tag1/>
<my-tag2/>
<my-tag3/>
</div>
Now let's say that <outer-tag>
, <my-tag1/>
and <my-tag3/>
were always the same. But I want <my-tag2>
to be pluggable. i.e. passed in. How would I do that in Polymer?
If I understood the question right, you are looking for a way to distribute random children into the outer-tag's DOM (Documentation).
Here's how you would do it in your example:
Instead of ".tag2" you could more generally write "random-tag". The
select
attribute accepts CSS-like selectors.